Skip to content

Commit

Permalink
fixed build for cmake older than 3.30
Browse files Browse the repository at this point in the history
BlackZork committed Jul 19, 2024
1 parent 60ee9a1 commit 0b2e340
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -8,7 +8,9 @@ if (WITHOUT_TESTS)
endif()

# OLD until min boost version will be bumped to 1.70.x or higher
cmake_policy(SET CMP0167 OLD)
if (POLICY CMP0167)
cmake_policy(SET CMP0167 OLD)
endif()

find_package(Boost 1.54.0 REQUIRED COMPONENTS log program_options)
set(Boost_USE_STATIC_LIBS OFF)

0 comments on commit 0b2e340

Please sign in to comment.