SPTAG
SPTAG copied to clipboard
cmake: drop unused `COMPONENTS` from `find_package(Boost 1.67)`
The COMPONENTS in calls to find_package(Boost 1.67) appear to be unused (except for unit_test_framework in Test/CMakeLists.txt) since rebuilding without them still succeeds.
$ git grep -i find_package.*boost
CMakeLists.txt:find_package(Boost 1.67 COMPONENTS system thread serialization wserialization regex filesystem)
Test/CMakeLists.txt:find_package(Boost 1.67 COMPONENTS system thread serialization wserialization regex filesystem unit_test_framework)
I suggest dropping the unused components system thread serialization wserialization regex filesystem from both of the calls.
On older versions of Boost (1.67 is affected, 1.74 is not), the boost::system::system_category() function is undefined at link time unless the system component is included.