Skip to content

Commit ac4b436

Browse files
authored
Merge pull request #756 from okias/241211-cmake
build: we support recent CMake too
2 parents b3a736c + d24c115 commit ac4b436

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.8)
1+
cmake_minimum_required(VERSION 3.8...3.28)
22

33
project(OpenRW)
44

@@ -27,6 +27,9 @@ if(USE_CONAN)
2727

2828
rwdep_wrap_conan_targets()
2929
else()
30+
if(POLICY CMP0167)
31+
cmake_policy(SET CMP0167 NEW)
32+
endif()
3033
find_package(Boost REQUIRED)
3134
find_package(Boost COMPONENTS program_options system REQUIRED)
3235
if(BUILD_TESTS)

cmake/ctest/script_ci.ctest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.8)
1+
cmake_minimum_required(VERSION 3.8...3.28)
22

33
set(MODEL_NAME "continuous")
44

cmake/ctest/script_experimental.ctest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.8)
1+
cmake_minimum_required(VERSION 3.8...3.28)
22

33
set(MODEL_NAME "experimental")
44

0 commit comments

Comments
 (0)