Skip to content

Commit

Permalink
cmake policy based on version
Browse files Browse the repository at this point in the history
Signed-off-by: Tony Xiang <[email protected]>
  • Loading branch information
TonyXiang8787 committed Jan 21, 2025
1 parent df15f73 commit df941a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

include(GNUInstallDirs)

cmake_policy(SET CMP0167 OLD) # libboost-headers packaged by conda does not come with BoostConfig.cmake
if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.30.0")
# libboost-headers packaged by conda does not come with BoostConfig.cmake
cmake_policy(SET CMP0167 OLD)
endif()

find_package(Boost REQUIRED)
find_package(Eigen3 CONFIG REQUIRED)
find_package(nlohmann_json CONFIG REQUIRED)
Expand Down

0 comments on commit df941a7

Please sign in to comment.