2024-04-02 06:28:40 +08:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
endif()
|
|
|
|
|
2022-08-04 09:59:36 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO KarypisLab/GKlib
|
2024-04-02 06:28:40 +08:00
|
|
|
REF 8bd6bad750b2b0d90800c632cf18e8ee93ad72d7
|
|
|
|
SHA512 128cd9a48047b18b8013288162556f0b0f1d81845f5445f7cc62590ab28c06ee0a6c602cc999ce268ab27237eca3e8295df6432d377e45071946b98558872997
|
2022-08-04 09:59:36 +08:00
|
|
|
PATCHES
|
2024-04-02 06:28:40 +08:00
|
|
|
android.patch
|
2022-08-04 09:59:36 +08:00
|
|
|
build-fixes.patch
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2024-04-02 06:28:40 +08:00
|
|
|
OPTIONS
|
|
|
|
-DHINSTALL_PATH=GKlib
|
2022-08-04 09:59:36 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
2022-08-05 03:44:16 +08:00
|
|
|
vcpkg_cmake_config_fixup()
|
2024-04-02 06:28:40 +08:00
|
|
|
|
2022-08-04 09:59:36 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2024-04-02 06:28:40 +08:00
|
|
|
|
2022-08-04 09:59:36 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|