trendmicro / tlsh

Other
732 stars 136 forks source link

Build: Define default options only on "default" #138

Open a4lg opened 7 months ago

a4lg commented 7 months ago

This commit sets default options only when no related options are specified. With this, full hash (256 bucket variant) will compile just by -DTLSH_BUCKETS_256=1.

Just fixing CMakeLists.txt caused an error due to a failure to track with other changes on the version 4.0.0 on min hash (48 buckets variant) so this commit also fixes this issue.

jonjoliver commented 2 weeks ago

Hi @a4lg

ignore my previous comment - that I just edited. @merces has straightened out the way that outside collaborators can maintain TLSH! :-)

Cheers jono