vcpkg/ports/openblas/install-openblas.patch
Han Hu 6d052e3dc0 Add openblas and only the blas part is compiled. Because no gfortran things is included, openblas is BSD
[openblas] Reduce checked in headers, prefer to install from sources
2017-04-14 18:30:23 -07:00

25 lines
671 B
Diff

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