Open jacobkahn opened 1 year ago
This is nice. Though the build_binary
and query
programs come Boost free, so BUILD_TOOLS
is perhaps the wrong name. Query only (there is compile_query_only.sh
) or something about Boost?
Renamed to BUILD_WITH_BOOST
and re-enabled building query, fragment, and build_binary since they aren't boost dependent, as you say 👍 . I've tested in a few limited environments, but it would be good to test in other places.
Adds the
BUILD_TOOLS
(andBUILD_BENCHMARKS
) options to the CMake build, which allows users to easily toggle building or not building binary-related components (that are also Boost-dependent). Getting a build of KenLM that doesn't depend on Boost (and thus doesn't build any binary components such asbuilder
orinterpolate
) is now as simple asAlso adds
BUILD_BENCHMARKS
, which modulates building benchmarks.All defaults are set such that there is no behavior change from the current build if these options aren't specified.