Skip to content

Commit

Permalink
Fixed CMP0167 CMake warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bg-softcom committed Dec 26, 2024
1 parent a8ca7ed commit 5c01c62
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 5c01c62

Please sign in to comment.