find_package() doesn't detect boost on Windows Cmake
问题 I'm using a windows system. I want to use the Boost library using CMake. I've installed boost on C:\boost_1_55_0\ Here is my CMakeLists.txt file set(Boost_USE_STATIC_LIBS ON) set(Boost_USE_MULTITHREADED ON) set(Boost_USE_STATIC_RUNTIME OFF) find_package(Boost 1.55.0 COMPONENTS thread) if(Boost_FOUND) include_directories(${Boost_INCLUDE_DIRS}) LINK_DIRECTORIES(${Boost_LIBRARY_DIRS}) add_executable (linking_with_boost main.cc sqr.cc) target_link_libraries(linking_with_boost ${Boost_LIBRARIES})