early-access version 2853
This commit is contained in:
17
externals/vcpkg/ports/superlu/fix-libm.patch
vendored
Executable file
17
externals/vcpkg/ports/superlu/fix-libm.patch
vendored
Executable file
@@ -0,0 +1,17 @@
|
||||
diff --git a/SRC/CMakeLists.txt b/SRC/CMakeLists.txt
|
||||
index e627f06..9aa8949 100644
|
||||
--- a/SRC/CMakeLists.txt
|
||||
+++ b/SRC/CMakeLists.txt
|
||||
@@ -232,7 +232,11 @@ if(enable_complex16)
|
||||
endif()
|
||||
|
||||
add_library(superlu ${sources} ${HEADERS})
|
||||
-target_link_libraries(superlu PUBLIC ${BLAS_LIB} m)
|
||||
+if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||
+ target_link_libraries(superlu PUBLIC ${BLAS_LIB})
|
||||
+else()
|
||||
+ target_link_libraries(superlu PUBLIC ${BLAS_LIB} m)
|
||||
+endif()
|
||||
target_include_directories(superlu PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
||||
$<INSTALL_INTERFACE:include>
|
||||
29
externals/vcpkg/ports/superlu/portfile.cmake
vendored
Executable file
29
externals/vcpkg/ports/superlu/portfile.cmake
vendored
Executable file
@@ -0,0 +1,29 @@
|
||||
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
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DXSDK_ENABLE_Fortran=OFF
|
||||
-Denable_tests=OFF
|
||||
-Denable_blaslib=OFF
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/License.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
|
||||
vcpkg_fixup_pkgconfig()
|
||||
12
externals/vcpkg/ports/superlu/remove-make.inc.patch
vendored
Executable file
12
externals/vcpkg/ports/superlu/remove-make.inc.patch
vendored
Executable file
@@ -0,0 +1,12 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index b414f5f..22f29ce 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -155,7 +155,6 @@ endif()
|
||||
# file(WRITE "make.defs" "# can be exposed to users"
|
||||
# ${CMAKE_C_COMPILER} )
|
||||
# configure_file(${CMAKE_SOURCE_DIR}/make.inc.in ${CMAKE_SOURCE_DIR}/make.inc)
|
||||
-configure_file(${SuperLU_SOURCE_DIR}/make.inc.in ${SuperLU_SOURCE_DIR}/make.inc)
|
||||
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/superlu.pc.in ${CMAKE_CURRENT_BINARY_DIR}/superlu.pc @ONLY)
|
||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/superlu.pc
|
||||
11
externals/vcpkg/ports/superlu/vcpkg.json
vendored
Executable file
11
externals/vcpkg/ports/superlu/vcpkg.json
vendored
Executable file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "superlu",
|
||||
"version-date": "2020-01-07",
|
||||
"port-version": 5,
|
||||
"description": "Supernodal sparse direct solver.",
|
||||
"homepage": "https://github.com/xiaoyeli/superlu",
|
||||
"supports": "!(uwp | arm)",
|
||||
"dependencies": [
|
||||
"blas"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user