diff options
| author | nicole mazzuca <mazzucan@outlook.com> | 2020-03-04 13:52:00 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-04 13:52:00 -0800 |
| commit | 5c415ff8a0aad831ee90ee4327f26992d5fe3fb3 (patch) | |
| tree | ec368af3c4723a26d2af7347512e44bd1bdad2d3 /ports/superlu/fix-libm.patch | |
| parent | 42dee421afd75b967e22bc51d1dc1936fccb4fea (diff) | |
| download | vcpkg-5c415ff8a0aad831ee90ee4327f26992d5fe3fb3.tar.gz vcpkg-5c415ff8a0aad831ee90ee4327f26992d5fe3fb3.zip | |
[superlu] Add new port (#9930)
Diffstat (limited to 'ports/superlu/fix-libm.patch')
| -rw-r--r-- | ports/superlu/fix-libm.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ports/superlu/fix-libm.patch b/ports/superlu/fix-libm.patch new file mode 100644 index 000000000..a356bbda2 --- /dev/null +++ b/ports/superlu/fix-libm.patch @@ -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> |
