aboutsummaryrefslogtreecommitdiff
path: root/ports/openblas/install-openblas.patch
blob: 7beb11af9c102b115ad65438e363e8b6254dbd31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ff42643..1a013ee 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -13,7 +13,7 @@ enable_language(ASM)
 enable_language(C)
 
 if(MSVC)
-set(OpenBLAS_LIBNAME libopenblas)
+set(OpenBLAS_LIBNAME openblas)
 else()
 set(OpenBLAS_LIBNAME openblas)
 endif()
@@ -174,6 +174,10 @@ set_target_properties(${OpenBLAS_LIBNAME} PROPERTIES
   SOVERSION ${OpenBLAS_MAJOR_VERSION}
 )
 
+install(TARGETS ${OpenBLAS_LIBNAME}
+        RUNTIME DESTINATION bin
+        LIBRARY DESTINATION lib
+        ARCHIVE DESTINATION lib)
 
 # TODO: Why is the config saved here? Is this necessary with CMake?
 #Save the config files for installation