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
|
|
|
|
REF a3d5233770f0caad4bc4578b46d3b26af99e9c19
|
|
|
|
SHA512 c07e64be51ddef7774a367e1309ef4e596e93571531ec58a0c7b9db60a3db8b3a4a8b1262d66fcd512ad467db5df59a3726db342b259e392a08f56f5dd67c6ef
|
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
fix-libm.patch
|
|
|
|
remove-make.inc.patch
|
|
|
|
)
|
|
|
|
|
2022-08-04 10:13:02 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-03-05 05:52:00 +08:00
|
|
|
OPTIONS
|
|
|
|
-DXSDK_ENABLE_Fortran=OFF
|
|
|
|
-Denable_tests=OFF
|
|
|
|
-Denable_blaslib=OFF
|
|
|
|
)
|
|
|
|
|
2022-08-04 10:13:02 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
|
|
|
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
|
|
|
|
2022-08-04 10:13:02 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/License.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|