Skip to content

Commit

Permalink
Use new policy
Browse files Browse the repository at this point in the history
  • Loading branch information
flomnes committed Jan 2, 2025
1 parent 14b38e5 commit cd1a9e3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ cmake_minimum_required(VERSION 3.10)

project(unit_tests_antares VERSION 1.0)

if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.29")
# FindBoost.cmake was removed with recent versions of CMake
cmake_policy(SET CMP0167 NEW)
endif()

find_package(Boost COMPONENTS unit_test_framework REQUIRED)

# Make found targets globally available.
Expand Down

0 comments on commit cd1a9e3

Please sign in to comment.