Skip to content

Commit

Permalink
Merge pull request #964 from softcom-su/boost-cmake
Browse files Browse the repository at this point in the history
Fixed CMP0167 CMake warning
  • Loading branch information
gittiver authored Dec 31, 2024
2 parents 856f92a + 5c01c62 commit 849eb87
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ target_include_directories(Crow
)

if(CROW_USE_BOOST)
if(POLICY CMP0167)
# Use Boost CMake module from Boost instead of the one from CMake
cmake_policy(SET CMP0167 NEW)
endif()
find_package(Boost 1.64 COMPONENTS system date_time REQUIRED)
target_link_libraries(Crow
INTERFACE
Expand Down

0 comments on commit 849eb87

Please sign in to comment.