Lines Matching +full:cmake +full:- +full:version
3 # ==== Define cmake build policies that affect compilation and linkage default behaviors
5 # Set the JSONCPP_NEWEST_VALIDATED_POLICIES_VERSION string to the newest cmake version
12 # CMake versions greater than the JSONCPP_NEWEST_VALIDATED_POLICIES_VERSION policies will
13 # continue to generate policy warnings "CMake Warning (dev)...Policy CMP0XXX is not set:"
17 cmake_minimum_required(VERSION ${JSONCPP_OLDEST_VALIDATED_POLICIES_VERSION})
19 #Set and use the newest available cmake policies that are validated to work
24 cmake_policy(VERSION ${JSONCPP_CMAKE_POLICY_VERSION})
55 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
57 # ---------------------------------------------------------------------------
59 # ---------------------------------------------------------------------------
68 # Note: version must be updated in three places when doing a release. This
69 # annoying process ensures that amalgamate, CMake, and meson all report the
70 # correct version.
72 # 2. ./include/json/version.h
75 VERSION 1.9.5 # <major>[.<minor>[.<patch>[.<tweak>]]]
78 message(STATUS "JsonCpp Version: ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSIO…
81 include(${CMAKE_CURRENT_SOURCE_DIR}/include/PreventInSourceBuilds.cmake)
82 include(${CMAKE_CURRENT_SOURCE_DIR}/include/PreventInBuildInstalls.cmake)
85 option(JSONCPP_WITH_POST_BUILD_UNITTEST "Automatically run unit-tests as a post build step" ON)
89 option(JSONCPP_WITH_CMAKE_PACKAGE "Generate and install cmake package files" ON)
104 set(JSONCPP_USE_SECURE_MEMORY "0" CACHE STRING "-D...=1 to use memory-wiping allocator for STL")
106 configure_file("${PROJECT_SOURCE_DIR}/version.in"
107 "${PROJECT_BINARY_DIR}/version"
116 add_compile_options(-Werror)
118 add_compile_options(-pedantic-errors)
137 add_compile_options(-Wall -Wconversion -Wshadow)
140 add_compile_options(-Werror=conversion -Werror=sign-compare)
144 add_compile_options(-Wall -Wconversion -Wshadow -Wextra)
145 # not yet ready for -Wsign-conversion
148 add_compile_options(-Wpedantic)
151 add_compile_options(-Werror=conversion)
155 add_compile_options(-Wall -Wconversion -Wshadow -Wextra)
158 add_compile_options(-Werror=conversion)
160 add_compile_options(-Wpedantic)
175 "pkg-config/jsoncpp.pc.in"
176 "pkg-config/jsoncpp.pc"
178 install(FILES "${CMAKE_CURRENT_BINARY_DIR}/pkg-config/jsoncpp.pc"
185 DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/jsoncpp
186 FILE jsoncpp-targets.cmake)
187 …configure_package_config_file(jsoncppConfig.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/jsoncppConfig.cma…
188 INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/jsoncpp)
190 write_basic_package_version_file("${CMAKE_CURRENT_BINARY_DIR}/jsoncppConfigVersion.cmake"
191 VERSION ${PROJECT_VERSION}
194 …${CMAKE_CURRENT_BINARY_DIR}/jsoncppConfigVersion.cmake ${CMAKE_CURRENT_BINARY_DIR}/jsoncppConfig.c…
195 ${CMAKE_CURRENT_SOURCE_DIR}/jsoncpp-namespaced-targets.cmake
196 DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/jsoncpp)