vcpkg/ports/croncpp/portfile.cmake

25 lines
663 B
CMake
Raw Normal View History

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