summaryrefslogtreecommitdiff
path: root/BLAS
diff options
context:
space:
mode:
authorKyle Guinn <elyk03@gmail.com>2016-10-05 22:36:01 -0500
committerKyle Guinn <elyk03@gmail.com>2016-10-05 22:36:01 -0500
commit58879a48fcb0a059ee96753fc6cc6341448a0015 (patch)
tree6cf90be5878d8c17ca9f688d08379199d42f8ade /BLAS
parent3bab67b085bbfc57f6152a6a6741d3330b172cc0 (diff)
downloadlapack-58879a48fcb0a059ee96753fc6cc6341448a0015.tar.gz
lapack-58879a48fcb0a059ee96753fc6cc6341448a0015.tar.bz2
lapack-58879a48fcb0a059ee96753fc6cc6341448a0015.zip
Improve pkgconfig file generation
The prefix and libdir lines at the top of the .pc files are variable declarations. Set these variables appropriately, reference them in the rest of the file, and prevent cmake from expanding ${}-style references. Switch back to @prefix@ and @libdir@ for compatibility with autoconf. Make the descriptions consistent and update the URLs.
Diffstat (limited to 'BLAS')
-rw-r--r--BLAS/CMakeLists.txt2
-rw-r--r--BLAS/blas.pc.in10
2 files changed, 6 insertions, 6 deletions
diff --git a/BLAS/CMakeLists.txt b/BLAS/CMakeLists.txt
index 9958f8be..42cd4f61 100644
--- a/BLAS/CMakeLists.txt
+++ b/BLAS/CMakeLists.txt
@@ -2,7 +2,7 @@ add_subdirectory(SRC)
if(BUILD_TESTING)
add_subdirectory(TESTING)
endif()
-configure_file(${CMAKE_CURRENT_SOURCE_DIR}/blas.pc.in ${CMAKE_CURRENT_BINARY_DIR}/blas.pc)
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/blas.pc.in ${CMAKE_CURRENT_BINARY_DIR}/blas.pc @ONLY)
install(FILES
${CMAKE_CURRENT_BINARY_DIR}/blas.pc
DESTINATION ${PKG_CONFIG_DIR}
diff --git a/BLAS/blas.pc.in b/BLAS/blas.pc.in
index b8963c5b..7fd6f1e7 100644
--- a/BLAS/blas.pc.in
+++ b/BLAS/blas.pc.in
@@ -1,9 +1,9 @@
-prefix=@CMAKE_INSTALL_PREFIX@
-libdir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@
+prefix=@prefix@
+libdir=@libdir@
-Name: blas
-Description: Basic Linear Algebra Subprograms F77 reference implementations
+Name: BLAS
+Description: FORTRAN reference implementation of BLAS Basic Linear Algebra Subprograms
Version: @LAPACK_VERSION@
URL: http://www.netlib.org/blas/
-Libs: -L@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@ -lblas
+Libs: -L${libdir} -lblas
Libs.private: -lm