mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 02:57:09 +01:00
[clapack] fix clapack install (#8388)
This commit is contained in:
parent
4235c216ac
commit
b09ce119c5
@ -1,5 +1,5 @@
|
|||||||
Source: clapack
|
Source: clapack
|
||||||
Version: 3.2.1-11
|
Version: 3.2.1-12
|
||||||
Homepage: https://www.netlib.org/clapack
|
Homepage: https://www.netlib.org/clapack
|
||||||
Description: CLAPACK (f2c'ed version of LAPACK)
|
Description: CLAPACK (f2c'ed version of LAPACK)
|
||||||
Build-Depends: openblas (!osx)
|
Build-Depends: openblas (!osx)
|
||||||
|
45
ports/clapack/fix-install.patch
Normal file
45
ports/clapack/fix-install.patch
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
|
index 414ac8e..db58b4e 100644
|
||||||
|
--- a/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -19,7 +19,7 @@ include_directories(${CLAPACK_SOURCE_DIR}/INCLUDE)
|
||||||
|
add_subdirectory(F2CLIBS)
|
||||||
|
add_subdirectory(SRC)
|
||||||
|
set(CLAPACK_VERSION 3.2.1)
|
||||||
|
-export(TARGETS f2c lapack FILE ${CMAKE_INSTALL_PREFIX}/share/clapack/clapack-targets.cmake)
|
||||||
|
+install(EXPORT clapack-targets FILE clapack-targets.cmake DESTINATION share/clapack)
|
||||||
|
configure_file(${CLAPACK_SOURCE_DIR}/clapack-config-version.cmake.in
|
||||||
|
${CMAKE_INSTALL_PREFIX}/share/clapack/clapack-config-version.cmake @ONLY)
|
||||||
|
configure_file(${CLAPACK_SOURCE_DIR}/clapack-config.cmake.in
|
||||||
|
diff --git a/F2CLIBS/libf2c/CMakeLists.txt b/F2CLIBS/libf2c/CMakeLists.txt
|
||||||
|
index 6fa3598..c855e38 100644
|
||||||
|
--- a/F2CLIBS/libf2c/CMakeLists.txt
|
||||||
|
+++ b/F2CLIBS/libf2c/CMakeLists.txt
|
||||||
|
@@ -63,8 +63,9 @@ set_property(TARGET f2c PROPERTY PREFIX lib)
|
||||||
|
if(UNIX)
|
||||||
|
target_link_libraries(f2c m)
|
||||||
|
endif()
|
||||||
|
-install(TARGETS f2c
|
||||||
|
+install(TARGETS f2c EXPORT clapack-targets
|
||||||
|
RUNTIME DESTINATION bin
|
||||||
|
LIBRARY DESTINATION lib
|
||||||
|
- ARCHIVE DESTINATION lib)
|
||||||
|
+ ARCHIVE DESTINATION lib
|
||||||
|
+ INCLUDES DESTINATION include)
|
||||||
|
|
||||||
|
diff --git a/SRC/CMakeLists.txt b/SRC/CMakeLists.txt
|
||||||
|
index 07dc8c7..2355225 100644
|
||||||
|
--- a/SRC/CMakeLists.txt
|
||||||
|
+++ b/SRC/CMakeLists.txt
|
||||||
|
@@ -377,8 +377,9 @@ if(BUILD_COMPLEX16)
|
||||||
|
endif()
|
||||||
|
add_library(lapack ${ALLOBJ} ${ALLXOBJ})
|
||||||
|
target_link_libraries(lapack ${BLAS_LIBRARIES} f2c)
|
||||||
|
-install(TARGETS lapack
|
||||||
|
+install(TARGETS lapack EXPORT clapack-targets
|
||||||
|
RUNTIME DESTINATION bin
|
||||||
|
LIBRARY DESTINATION lib
|
||||||
|
- ARCHIVE DESTINATION lib)
|
||||||
|
+ ARCHIVE DESTINATION lib
|
||||||
|
+ INCLUDES DESTINATION include)
|
||||||
|
|
@ -14,6 +14,7 @@ vcpkg_extract_source_archive_ex(
|
|||||||
PATCHES
|
PATCHES
|
||||||
remove_internal_blas.patch
|
remove_internal_blas.patch
|
||||||
fix-ConfigFile.patch
|
fix-ConfigFile.patch
|
||||||
|
fix-install.patch
|
||||||
)
|
)
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_configure_cmake(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user