2023-07-07 01:43:48 +08:00
|
|
|
set(VCPKG_BUILD_TYPE release) # header-only port
|
2020-09-14 19:46:46 -04:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO mariusbancila/croncpp
|
2023-07-07 01:43:48 +08:00
|
|
|
REF e817348a2dcd77b968c0b87a43274932b9800f4b # 2023-03-30
|
|
|
|
SHA512 aee687f4e8d7ce85aa9ba3a9e551443353abc20af9face62b618ce55ffa7a4632a4cd0c02c46e43c52b7f1797d62006183776a2d7fad48473bb964af79c2d531
|
2020-09-14 19:46:46 -04:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2022-03-09 22:12:40 +01:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
2023-07-07 01:43:48 +08:00
|
|
|
-DCRONCPP_BUILD_TESTS=OFF
|
2020-09-14 19:46:46 -04:00
|
|
|
)
|
|
|
|
|
2022-03-09 22:12:40 +01:00
|
|
|
vcpkg_cmake_install()
|
2020-09-14 19:46:46 -04:00
|
|
|
|
2023-07-07 01:43:48 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
2020-09-14 19:46:46 -04:00
|
|
|
|
2023-07-07 01:43:48 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
2020-09-14 19:46:46 -04:00
|
|
|
|
2022-03-09 22:12:40 +01:00
|
|
|
# Handle copyright
|
2023-07-07 01:43:48 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|