CMake Error while using find_package(Boost … ) in CMakeLists.txt: No suitable build variant has been found
问题 When using CMake, I get the following error when calling find_package(Boost 1.6 COMPONENTS program_options thread system REQUIRED) : -- Boost include dirs: C:/dev/boost/include/boost-1_72 -- Boost libraries: Boost library -- Found Boost 1.72.0 at C:/dev/boost/lib/cmake/Boost-1.72.0 -- Requested configuration: QUIET REQUIRED COMPONENTS program_options;thread;system -- BoostConfig: find_package(boost_headers 1.72.0 EXACT CONFIG REQUIRED QUIET HINTS C:/dev/boost/lib/cmake) -- BoostConfig: find