Skip to content

Commit 87576c4

Browse files
committed
Fix CMake 4.0 compatibility in jsoncppConfig.cmake.in (#1671)
CMake 4.0 has removed compatibility with policy versions below 3.5. This change updates the minimum policy version from 3.0 to 3.5 in `jsoncppConfig.cmake.in` to prevent a fatal configuration error when downstream projects use `find_package(jsoncpp)` with CMake 4.0+.
1 parent 19a794d commit 87576c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jsoncppConfig.cmake.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_policy(PUSH)
2-
cmake_policy(VERSION 3.0...3.26)
2+
cmake_policy(VERSION 3.5...3.26)
33

44
@PACKAGE_INIT@
55

0 commit comments

Comments
 (0)