2022-08-04 10:13:02 +08:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
endif()
|
|
|
|
|
2020-03-05 05:52:00 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO xiaoyeli/superlu
|
2023-02-10 02:49:54 +08:00
|
|
|
REF "v${VERSION}"
|
2024-10-19 06:03:47 +08:00
|
|
|
SHA512 d2b35ccfd4bee6f5967a1a65edc07d32a7d842aa3f623494de78cf69dc5f4819d82f675d6b2aec035fcbca0a8a3966ab76fa105e6162e8242eb6a56870e41cba
|
2020-03-05 05:52:00 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
2023-02-10 02:49:54 +08:00
|
|
|
remove-make.inc.patch
|
2023-04-26 13:46:59 +08:00
|
|
|
superfluous-configure.patch
|
2020-03-05 05:52:00 +08:00
|
|
|
)
|
|
|
|
|
2022-08-04 10:13:02 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-03-05 05:52:00 +08:00
|
|
|
OPTIONS
|
2023-02-10 02:49:54 +08:00
|
|
|
-DXSDK_ENABLE_Fortran=OFF
|
|
|
|
-Denable_tests=OFF
|
|
|
|
-Denable_internal_blaslib=OFF
|
|
|
|
-Denable_doc=OFF
|
2024-03-29 03:50:41 +08:00
|
|
|
-Denable_examples=OFF
|
2020-03-05 05:52:00 +08:00
|
|
|
)
|
|
|
|
|
2022-08-04 10:13:02 +08:00
|
|
|
vcpkg_cmake_install()
|
2023-02-10 02:49:54 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
2022-08-04 10:13:02 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2020-03-05 05:52:00 +08:00
|
|
|
|
2022-08-04 10:13:02 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2021-10-28 06:19:28 +08:00
|
|
|
|
2023-02-10 02:49:54 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/License.txt")
|