File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,14 @@ if(SANITIZERS)
3434 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-sanitize-recover=all" )
3535endif ()
3636
37+ # Disable deprecated internal FindBoost module if possible.
38+ if (POLICY CMP0167)
39+ cmake_policy (SET CMP0167 NEW)
40+ endif ()
41+
3742# find Boost
3843set (Boost_VERBOSE TRUE )
39- find_package (Boost CONFIG REQUIRED
44+ find_package (Boost REQUIRED
4045 COMPONENTS filesystem
4146 program_options
4247 regex
@@ -127,7 +132,7 @@ macro(build_pycsdiff version)
127132
128133 # find boost_python${version}
129134 set (PYTHON_VERSION_SUFFIX "${version} ${Python${version} _VERSION_MINOR}" )
130- find_package (Boost CONFIG REQUIRED COMPONENTS python${PYTHON_VERSION_SUFFIX} )
135+ find_package (Boost REQUIRED COMPONENTS python${PYTHON_VERSION_SUFFIX} )
131136 message (STATUS "Python ${version} binding enabled. "
132137 "The pycsdiff module will be built!" )
133138
You can’t perform that action at this time.
0 commit comments