2017-08-27 21:24:51 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO open-source-parsers/jsoncpp
|
2023-11-28 14:59:35 +08:00
|
|
|
REF "${VERSION}"
|
2024-09-24 03:25:30 +08:00
|
|
|
SHA512 006d81f9f723dcfe875ebc2147449c07c5246bf97dd7b9eee1909decc914b051d6f3f06feb5c3dfa143d28773fb310aabb04a81dc447cc61513309df8eba8b08
|
2017-08-27 21:24:51 +08:00
|
|
|
HEAD_REF master
|
2016-11-16 23:10:35 +08:00
|
|
|
)
|
|
|
|
|
2020-10-07 05:59:03 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" JSONCPP_STATIC)
|
2021-11-16 06:53:15 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATIC_CRT)
|
2016-11-17 05:13:08 +08:00
|
|
|
|
2021-11-16 06:53:15 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-01-30 03:49:19 +08:00
|
|
|
OPTIONS
|
|
|
|
-DJSONCPP_WITH_CMAKE_PACKAGE=ON
|
|
|
|
-DBUILD_STATIC_LIBS=${JSONCPP_STATIC}
|
2021-11-16 06:53:15 +08:00
|
|
|
-DJSONCPP_STATIC_WINDOWS_RUNTIME=${STATIC_CRT}
|
2023-10-13 10:34:04 +08:00
|
|
|
-DJSONCPP_WITH_PKGCONFIG_SUPPORT=ON
|
2020-01-30 03:49:19 +08:00
|
|
|
-DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF
|
|
|
|
-DJSONCPP_WITH_TESTS=OFF
|
|
|
|
-DJSONCPP_WITH_EXAMPLE=OFF
|
2023-11-28 14:59:35 +08:00
|
|
|
-DBUILD_OBJECT_LIBS=OFF
|
2016-11-16 23:10:35 +08:00
|
|
|
)
|
|
|
|
|
2021-11-16 06:53:15 +08:00
|
|
|
vcpkg_cmake_install()
|
2016-11-16 23:10:35 +08:00
|
|
|
|
2021-11-16 06:53:15 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/jsoncpp)
|
2016-11-16 23:10:35 +08:00
|
|
|
|
2021-11-16 06:53:15 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2016-11-16 23:10:35 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
2023-10-13 10:34:04 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2023-11-28 14:59:35 +08:00
|
|
|
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|