Definitely disable using system boost if version doesn't match

This commit is contained in:
Hamish Milne 2019-12-28 23:36:12 +00:00 committed by zhupengfei
parent d041901a30
commit a0ac302a93

View File

@ -132,7 +132,7 @@ if (NOT Boost_FOUND)
set(BOOST_ROOT "${PROJECT_SOURCE_DIR}/externals/boost") set(BOOST_ROOT "${PROJECT_SOURCE_DIR}/externals/boost")
set(Boost_INCLUDE_DIR "${CMAKE_SOURCE_DIR}/externals/boost") set(Boost_INCLUDE_DIR "${CMAKE_SOURCE_DIR}/externals/boost")
set(Boost_NO_SYSTEM_PATHS OFF) set(Boost_NO_SYSTEM_PATHS ON)
add_definitions( -DBOOST_ALL_NO_LIB ) add_definitions( -DBOOST_ALL_NO_LIB )
find_package(Boost QUIET REQUIRED) find_package(Boost QUIET REQUIRED)