2021-03-31 01:17:02 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO ned14/status-code
|
2023-11-15 05:11:02 +08:00
|
|
|
REF 63b229c756202525d1c90d21706fdfb744096220
|
|
|
|
SHA512 610b40b6a967fcce9494478d4518e2529be328ce2aaccbedab8d2264d19d2791e427f51b48886fceacafecf74f24a3d25a9dd54697d375bdc8414521cce579a5
|
2021-03-31 01:17:02 +08:00
|
|
|
HEAD_REF master
|
2022-09-03 01:40:12 +08:00
|
|
|
PATCHES
|
2021-03-31 01:17:02 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
# Because status-code's deployed files are header-only, the debug build is not necessary
|
|
|
|
set(VCPKG_BUILD_TYPE release)
|
|
|
|
|
2022-09-03 01:40:12 +08:00
|
|
|
vcpkg_cmake_configure(
|
2021-03-31 01:17:02 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
2023-11-23 06:30:27 +08:00
|
|
|
-DBUILD_TESTING=OFF
|
2023-11-15 05:11:02 +08:00
|
|
|
-Dstatus-code_IS_DEPENDENCY=ON
|
2023-02-03 08:53:56 +08:00
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Boost=ON
|
2023-11-15 05:11:02 +08:00
|
|
|
MAYBE_UNUSED_VARIABLES
|
|
|
|
CMAKE_DISABLE_FIND_PACKAGE_Boost
|
2021-03-31 01:17:02 +08:00
|
|
|
)
|
|
|
|
|
2022-09-03 01:40:12 +08:00
|
|
|
vcpkg_cmake_install()
|
2021-03-31 01:17:02 +08:00
|
|
|
|
2022-09-03 01:40:12 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/status-code)
|
2021-03-31 01:17:02 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
|
|
|
|
|
|
|
file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
2022-09-10 02:55:55 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/Licence.txt")
|