2024-06-04 13:36:58 +08:00
|
|
|
set(VCPKG_BUILD_TYPE release) # header-only
|
2019-04-30 02:50:58 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO taocpp/json
|
2020-10-29 05:18:07 +08:00
|
|
|
REF f357d7269b7503eed21d0c3b98b9075c28a98f56 # accessed on 2020-09-14
|
2020-10-14 04:17:32 +08:00
|
|
|
SHA512 4a4be970779ed0c6044c7ad40918ad6b3908ca10dbfb3738cbebb62154d437ad13ca27947119a6b1a6c8d92b22a9282477c73ddc5721ca30b8b355b77d7ce729
|
2019-04-30 02:50:58 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-04-30 02:50:58 +08:00
|
|
|
OPTIONS
|
|
|
|
-DTAOCPP_JSON_BUILD_TESTS=OFF
|
|
|
|
-DTAOCPP_JSON_BUILD_EXAMPLES=OFF
|
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-04-30 02:50:58 +08:00
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/taocpp-json/cmake)
|
2019-04-30 02:50:58 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE
|
2023-03-02 02:39:29 +08:00
|
|
|
"${CURRENT_PACKAGES_DIR}/debug"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/share/doc"
|
2019-04-30 02:50:58 +08:00
|
|
|
)
|
|
|
|
|
2024-06-04 13:36:58 +08:00
|
|
|
vcpkg_install_copyright(
|
|
|
|
FILE_LIST
|
|
|
|
"${SOURCE_PATH}/LICENSE"
|
|
|
|
"${SOURCE_PATH}/LICENSE.double-conversion"
|
|
|
|
"${SOURCE_PATH}/LICENSE.itoa"
|
|
|
|
"${SOURCE_PATH}/LICENSE.ryu"
|
|
|
|
)
|