Skip to content

Commit ef08771

Browse files
baylesjclaude
andauthored
Fix CMake deprecation warning for compatibility with CMake < 3.10 (#1659)
* Fix uninitialized CMake variable in version.in CMake's project() command sets jsoncpp_VERSION (lowercase prefix), not JSONCPP_VERSION. The wrong variable caused the generated version file to be empty. Fixes #1656 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Fix CMake deprecation warning for compatibility with CMake < 3.10 Bump JSONCPP_OLDEST_VALIDATED_POLICIES_VERSION from 3.8.0 to 3.10.0 to silence the CMake 3.31 deprecation warning. Fixes #1598 --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 134138d commit ef08771

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# CMake versions greater than the JSONCPP_NEWEST_VALIDATED_POLICIES_VERSION policies will
1313
# continue to generate policy warnings "CMake Warning (dev)...Policy CMP0XXX is not set:"
1414
#
15-
set(JSONCPP_OLDEST_VALIDATED_POLICIES_VERSION "3.8.0")
15+
set(JSONCPP_OLDEST_VALIDATED_POLICIES_VERSION "3.10.0")
1616
set(JSONCPP_NEWEST_VALIDATED_POLICIES_VERSION "3.13.2")
1717
cmake_minimum_required(VERSION ${JSONCPP_OLDEST_VALIDATED_POLICIES_VERSION})
1818
if("${CMAKE_VERSION}" VERSION_LESS "${JSONCPP_NEWEST_VALIDATED_POLICIES_VERSION}")

0 commit comments

Comments
 (0)