Skip to content

Commit

Permalink
[clapack]fix missing library and tools. (microsoft#5749)
Browse files Browse the repository at this point in the history
  • Loading branch information
JackBoosY authored and Rastaban committed Mar 20, 2019
1 parent 6f05947 commit 64fc320
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ports/clapack/CONTROL
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Source: clapack
Version: 3.2.1-1
Version: 3.2.1-2
Description: CLAPACK (f2c'ed version of LAPACK)
Build-Depends: openblas
19 changes: 19 additions & 0 deletions ports/clapack/fix-lack-library.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
diff --git a/F2CLIBS/libf2c/CMakeLists.txt b/F2CLIBS/libf2c/CMakeLists.txt
index 2bdbd05..e77b3a3 100644
--- a/F2CLIBS/libf2c/CMakeLists.txt
+++ b/F2CLIBS/libf2c/CMakeLists.txt
@@ -60,3 +60,13 @@ include_directories(${CLAPACK_SOURCE_DIR}/F2CLIBS/libf2c)
include_directories(${CLAPACK_BINARY_DIR}/F2CLIBS/libf2c)
add_library(f2c STATIC ${OFILES} ${CMAKE_CURRENT_BINARY_DIR}/arith.h)
set_property(TARGET f2c PROPERTY PREFIX lib)
+
+install(TARGETS f2c
+ RUNTIME DESTINATION bin
+ LIBRARY DESTINATION lib
+ ARCHIVE DESTINATION lib)
+
+install(TARGETS arithchk
+ RUNTIME DESTINATION tools
+ LIBRARY DESTINATION lib
+ ARCHIVE DESTINATION lib)
\ No newline at end of file
4 changes: 3 additions & 1 deletion ports/clapack/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ file(COPY ${CMAKE_CURRENT_LIST_DIR}/lapack.def DESTINATION ${SOURCE_PATH}/SRC)

vcpkg_apply_patches(
SOURCE_PATH ${SOURCE_PATH}
PATCHES "${CMAKE_CURRENT_LIST_DIR}/use-other-blas-and-install-include.patch"
PATCHES
use-other-blas-and-install-include.patch
fix-lack-library.patch
)

vcpkg_configure_cmake(
Expand Down

0 comments on commit 64fc320

Please sign in to comment.