aboutsummaryrefslogtreecommitdiff
path: root/ports/superlu/fix-libm.patch
blob: a356bbda28e0981ced35e2cfc978616c30e2a9c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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>