diff options
author | Sebastian Trueg <trueg@kde.org> | 2009-11-30 19:35:20 +0000 |
---|---|---|
committer | Sebastian Trueg <trueg@kde.org> | 2009-11-30 19:35:20 +0000 |
commit | d440010c7527a6e5ceb8360222bc04eb4762c324 (patch) | |
tree | 63109dbafb9fc8cf5789b26551aad2db8385fcc9 | |
parent | 97ed16d3dc30e537baf7a2984c8fff3535dfc32e (diff) |
A small patch for Alex Neundorf, the KDE cmake god:
"attached is a small patch which makes the pkgconfig pc-file installation
follow CMAKE_INSTALL_PREFIX also when CMAKE_INSTALL_PREFIX is set later on
(and not already initially).
If the install dir is not absolute path, it is considered relative to
CMAKE_INSTALL_PREFIX.
So if somebody wants to install the pc-file to a completely different
location, this can still be done by simply entering the full install dir in
PKGCONFIG_INSTALL_DIR."
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b9946ad..f6e8799 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,9 +29,9 @@ install(FILES # optionally install the pkgconfig stuff # =============================================================================================== if(NOT WIN32) - set(PKGCONFIG_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/share/pkgconfig/" CACHE STRING "Base directory for pkgconfig files") + set(PKGCONFIG_INSTALL_DIR "share/pkgconfig/" CACHE STRING "Base directory for pkgconfig files") configure_file(${CMAKE_CURRENT_SOURCE_DIR}/shared-desktop-ontologies.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/shared-desktop-ontologies.pc @ONLY) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/shared-desktop-ontologies.pc DESTINATION ${PKGCONFIG_INSTALL_PREFIX}) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/shared-desktop-ontologies.pc DESTINATION ${PKGCONFIG_INSTALL_DIR}) endif(NOT WIN32) |