summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2017-04-16 00:59:28 +0200
committerDavid Seifert <soap@gentoo.org>2017-04-16 00:59:28 +0200
commitc008398d4918ef94ab4d1ed0c4f57f63f8104aee (patch)
tree9a02a18183e0dc4837b1c9da468a128914582f7b
parentaefe75153596de43210057558301efbebcb3793c (diff)
downloadlapack-c008398d4918ef94ab4d1ed0c4f57f63f8104aee.tar.gz
lapack-c008398d4918ef94ab4d1ed0c4f57f63f8104aee.tar.bz2
lapack-c008398d4918ef94ab4d1ed0c4f57f63f8104aee.zip
Replace last occurrences of `include` install paths
* Distributions might need to change the header dir * Also change the template paths in the `.pc` files to the idiomatic CMake `GNUInstallDirs` full paths, which are always correct, regardless of whether the user specified relative or absolute paths. This makes the build system somewhat easier and more idiomatic.
-rw-r--r--BLAS/blas.pc.in4
-rw-r--r--CBLAS/CMakeLists.txt2
-rw-r--r--CBLAS/cblas.pc.in5
-rw-r--r--CMakeLists.txt6
-rw-r--r--LAPACKE/CMakeLists.txt2
-rw-r--r--LAPACKE/lapacke.pc.in5
-rw-r--r--lapack.pc.in4
7 files changed, 12 insertions, 16 deletions
diff --git a/BLAS/blas.pc.in b/BLAS/blas.pc.in
index 4ad1bb00..37809773 100644
--- a/BLAS/blas.pc.in
+++ b/BLAS/blas.pc.in
@@ -1,5 +1,5 @@
-prefix=@prefix@
-libdir=@libdir@
+libdir=@CMAKE_INSTALL_FULL_LIBDIR@
+includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
Name: BLAS
Description: FORTRAN reference implementation of BLAS Basic Linear Algebra Subprograms
diff --git a/CBLAS/CMakeLists.txt b/CBLAS/CMakeLists.txt
index f7be6e2d..d9fa2453 100644
--- a/CBLAS/CMakeLists.txt
+++ b/CBLAS/CMakeLists.txt
@@ -28,7 +28,7 @@ endforeach()
endmacro()
append_subdir_files(CBLAS_INCLUDE "include")
-install(FILES ${CBLAS_INCLUDE} ${LAPACK_BINARY_DIR}/include/cblas_mangling.h DESTINATION include)
+install(FILES ${CBLAS_INCLUDE} ${LAPACK_BINARY_DIR}/include/cblas_mangling.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
# --------------------------------------------------
if(BUILD_TESTING)
diff --git a/CBLAS/cblas.pc.in b/CBLAS/cblas.pc.in
index 7cf09f21..7c95ebbb 100644
--- a/CBLAS/cblas.pc.in
+++ b/CBLAS/cblas.pc.in
@@ -1,9 +1,10 @@
-prefix=@prefix@
-libdir=@libdir@
+libdir=@CMAKE_INSTALL_FULL_LIBDIR@
+includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
Name: CBLAS
Description: C Standard Interface to BLAS Basic Linear Algebra Subprograms
Version: @LAPACK_VERSION@
URL: http://www.netlib.org/blas/#_cblas
Libs: -L${libdir} -lcblas
+Cflags: -I${includedir}
Requires.private: blas
diff --git a/CMakeLists.txt b/CMakeLists.txt
index eed3796e..d8b3c95c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -108,12 +108,6 @@ macro(lapack_install_library lib)
endmacro()
set(PKG_CONFIG_DIR ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
-set(prefix ${CMAKE_INSTALL_PREFIX})
-if(NOT IS_ABSOLUTE ${CMAKE_INSTALL_LIBDIR})
- set(libdir "\${prefix}/${CMAKE_INSTALL_LIBDIR}")
-else()
- set(libdir "${CMAKE_INSTALL_LIBDIR}")
-endif()
# --------------------------------------------------
# Testing
diff --git a/LAPACKE/CMakeLists.txt b/LAPACKE/CMakeLists.txt
index d9a85ee6..68122123 100644
--- a/LAPACKE/CMakeLists.txt
+++ b/LAPACKE/CMakeLists.txt
@@ -67,7 +67,7 @@ endif()
target_link_libraries(lapacke PRIVATE ${LAPACK_LIBRARIES})
lapack_install_library(lapacke)
-install(FILES ${LAPACKE_INCLUDE} ${LAPACK_BINARY_DIR}/include/lapacke_mangling.h DESTINATION include)
+install(FILES ${LAPACKE_INCLUDE} ${LAPACK_BINARY_DIR}/include/lapacke_mangling.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
if(BUILD_TESTING)
add_subdirectory(example)
diff --git a/LAPACKE/lapacke.pc.in b/LAPACKE/lapacke.pc.in
index e4b83569..68da7395 100644
--- a/LAPACKE/lapacke.pc.in
+++ b/LAPACKE/lapacke.pc.in
@@ -1,9 +1,10 @@
-prefix=@prefix@
-libdir=@libdir@
+libdir=@CMAKE_INSTALL_FULL_LIBDIR@
+includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
Name: LAPACKE
Description: C Standard Interface to LAPACK Linear Algebra PACKage
Version: @LAPACK_VERSION@
URL: http://www.netlib.org/lapack/#_standard_c_language_apis_for_lapack
Libs: -L${libdir} -llapacke
+Cflags: -I${includedir}
Requires.private: lapack
diff --git a/lapack.pc.in b/lapack.pc.in
index 711012df..316c8710 100644
--- a/lapack.pc.in
+++ b/lapack.pc.in
@@ -1,5 +1,5 @@
-prefix=@prefix@
-libdir=@libdir@
+libdir=@CMAKE_INSTALL_FULL_LIBDIR@
+includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
Name: LAPACK
Description: FORTRAN reference implementation of LAPACK Linear Algebra PACKage