vcpkg/ports/superlu/portfile.cmake

33 lines
878 B
CMake
Raw Normal View History

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 "v${VERSION}"
2024-03-29 03:50:41 +08:00
SHA512 6dd2baeff9ca7ed4761845b9a30c6dca4e19ca498e10ea7360013b3aece576ca996a8bf31c4479321feda6f5266235d68ea9a2e256f0ffe91f804d4cdecd3847
2020-03-05 05:52:00 +08:00
HEAD_REF master
PATCHES
remove-make.inc.patch
superfluous-configure.patch
2020-03-05 05:52:00 +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_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
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
vcpkg_fixup_pkgconfig()
2020-03-05 05:52:00 +08:00
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/License.txt")