diff options
author | Kyle Guinn <elyk03@gmail.com> | 2016-10-05 22:36:01 -0500 |
---|---|---|
committer | Kyle Guinn <elyk03@gmail.com> | 2016-10-05 22:36:01 -0500 |
commit | 58879a48fcb0a059ee96753fc6cc6341448a0015 (patch) | |
tree | 6cf90be5878d8c17ca9f688d08379199d42f8ade /LAPACKE | |
parent | 3bab67b085bbfc57f6152a6a6741d3330b172cc0 (diff) |
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 'LAPACKE')
-rw-r--r-- | LAPACKE/CMakeLists.txt | 2 | ||||
-rw-r--r-- | LAPACKE/lapacke.pc.in | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/LAPACKE/CMakeLists.txt b/LAPACKE/CMakeLists.txt index cf708b90..904025f4 100644 --- a/LAPACKE/CMakeLists.txt +++ b/LAPACKE/CMakeLists.txt @@ -62,7 +62,7 @@ if(BUILD_TESTING) endif() -configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lapacke.pc.in ${CMAKE_CURRENT_BINARY_DIR}/lapacke.pc) +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lapacke.pc.in ${CMAKE_CURRENT_BINARY_DIR}/lapacke.pc @ONLY) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/lapacke.pc DESTINATION ${PKG_CONFIG_DIR} diff --git a/LAPACKE/lapacke.pc.in b/LAPACKE/lapacke.pc.in index 6eea4b92..028f8da6 100644 --- a/LAPACKE/lapacke.pc.in +++ b/LAPACKE/lapacke.pc.in @@ -1,9 +1,9 @@ -prefix=@CMAKE_INSTALL_PREFIX@ -libdir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@ +prefix=@prefix@ +libdir=@libdir@ -Name: lapacke +Name: LAPACKE Description: C Standard Interface to LAPACK Linear Algebra PACKage Version: @LAPACK_VERSION@ -URL: http://www.netlib.org/lapack/ -Libs: -L@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@ -llapacke +URL: http://www.netlib.org/lapack/#_standard_c_language_apis_for_lapack +Libs: -L${libdir} -llapacke Requires: lapack blas |