[qca] /: cmake: install export targets to lib dir

Ivan Romanov drizt at land.ru
Sun Aug 10 10:43:10 UTC 2014


Git commit f3b284f5654372adec44dbc6863b8434b6b4f3ce by Ivan Romanov.
Committed on 10/08/2014 at 10:38.
Pushed by iromanov into branch 'master'.

cmake: install export targets to lib dir

share/cmake is wrong place for generated cmake files. For such files
should be used lib/cmake dir.

CCMAIL: aleixpol at kde.org
CCMAIL: kde-core-devel at kde.org
CCMAIL: kde-frameworks-devel at kde.org

M  +4    -4    CMakeLists.txt

http://commits.kde.org/qca/f3b284f5654372adec44dbc6863b8434b6b4f3ce

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 24d8ab3..2838ecf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -328,14 +328,14 @@ include(CMakePackageConfigHelpers)
 configure_package_config_file(
   "${CMAKE_CURRENT_SOURCE_DIR}/QCA2Config.cmake.in"
   "${CMAKE_CURRENT_BINARY_DIR}/QCA2Config.cmake"
-  INSTALL_DESTINATION "share/cmake/QCA2"
+  INSTALL_DESTINATION ${QCA_LIBRARY_INSTALL_DIR}/cmake/${QCA_LIB_NAME}
 )
 write_basic_config_version_file(QCA2ConfigVersion.cmake VERSION ${QCA_LIB_VERSION_STRING} COMPATIBILITY AnyNewerVersion)
 
-install(EXPORT QCATargets DESTINATION "share/cmake/QCA2" FILE QCA2Targets.cmake NAMESPACE QCA:: )
+install(EXPORT QCATargets DESTINATION ${QCA_LIBRARY_INSTALL_DIR}/cmake/${QCA_LIB_NAME} FILE QCA2Targets.cmake NAMESPACE QCA:: )
 install(FILES
   "${CMAKE_CURRENT_BINARY_DIR}/QCA2Config.cmake"
   "${CMAKE_CURRENT_BINARY_DIR}/QCA2ConfigVersion.cmake"
-  DESTINATION "share/cmake/QCA2"
+  DESTINATION ${QCA_LIBRARY_INSTALL_DIR}/cmake/${QCA_LIB_NAME}
   COMPONENT Devel
-)
\ No newline at end of file
+)


More information about the Kde-frameworks-devel mailing list