Skip to content

Commit 230a40c

Browse files
committed
fix build with cmake 4
1 parent d3132a2 commit 230a40c

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

bm/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ find_package(Python REQUIRED COMPONENTS Interpreter)
77
# thirdparty libs that will be compared with ryml
88

99
set(_ed ${CMAKE_CURRENT_BINARY_DIR}/subprojects) # casual ryml extern dir (these projects are not part of ryml and are downloaded and compiled on the fly)
10+
if(NOT (CMAKE_VERSION VERSION_LESS "4.0.0"))
11+
c4_log(STATUS "setting CMAKE_POLICY_VERSION_MINIMUM=3.5 to compile benchmarked libs")
12+
set(CMAKE_POLICY_VERSION_MINIMUM 3.5 CACHE STRING "" FORCE)
13+
endif()
1014

1115
# libyaml
1216
c4_require_subproject(libyaml REMOTE

changelog/current.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@
2727
!tag : !tag
2828
```
2929
- [PR#501](https://github.com/biojppm/rapidyaml/pull/501): fix missing tag in `- !!seq []`.
30+
- [PR#508](https://github.com/biojppm/rapidyaml/pull/508): fix build with cmake 4.

ext/c4core

0 commit comments

Comments
 (0)