2018-09-15 02:54:54 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO gracicot/kangaru
|
2024-05-03 13:00:54 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 03835b156d6da9239e316bfad07684b7f3197798c314f7d8f707e9e225795546887867c5af7fd8ae075b7143d2f160b0185d6be16146975c868dea99c7334129
|
2018-09-15 02:54:54 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2022-09-23 02:42:38 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
hashtypeid KANGARU_HASH_TYPE_ID
|
|
|
|
)
|
|
|
|
|
2022-04-19 07:38:53 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DKANGARU_EXPORT=OFF
|
|
|
|
-DKANGARU_TEST=OFF
|
|
|
|
-DKANGARU_REVERSE_DESTRUCTION=ON
|
2022-09-23 02:42:38 +08:00
|
|
|
${FEATURE_OPTIONS}
|
2018-09-15 02:54:54 +08:00
|
|
|
)
|
|
|
|
|
2022-04-19 07:38:53 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-09-15 02:54:54 +08:00
|
|
|
|
2022-04-19 07:38:53 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/kangaru)
|
2018-09-15 02:54:54 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE
|
2022-04-19 07:38:53 +08:00
|
|
|
"${CURRENT_PACKAGES_DIR}/lib"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug"
|
2018-09-15 02:54:54 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
# Put the license file where vcpkg expects it
|
2024-05-03 13:00:54 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|