summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2013-07-11 16:56:24 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2013-07-11 16:56:24 (GMT)
commitd7d6fcea7ae9b8d9fcd03789a41f57b0c9a88f2f (patch)
tree58619cbedc894a414916b3ff2bf435adfe06f588 /cmake
parent930aeabbed9b9694fe23a5e3c3156e3c5b85724a (diff)
downloadlibkolabxml-d7d6fcea7ae9b8d9fcd03789a41f57b0c9a88f2f.tar.gz
Deal with relative as well as absolute install paths.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/LibkolabxmlConfig.cmake.in17
1 files changed, 8 insertions, 9 deletions
diff --git a/cmake/modules/LibkolabxmlConfig.cmake.in b/cmake/modules/LibkolabxmlConfig.cmake.in
index f42726f..40f30a4 100644
--- a/cmake/modules/LibkolabxmlConfig.cmake.in
+++ b/cmake/modules/LibkolabxmlConfig.cmake.in
@@ -1,18 +1,17 @@
-get_filename_component(myDir ${CMAKE_CURRENT_LIST_FILE} PATH) # get the directory where I myself am
-get_filename_component(rootDir ${myDir}/@relInstallDir@ ABSOLUTE) # get the chosen install prefix
+get_filename_component(Libkolabxml_CMAKE_DIR ${CMAKE_CURRENT_LIST_FILE} PATH) #get the directory where this *Config.cmake file is installed
-# set the version of myself
+# set the version
set(Libkolabxml_VERSION_MAJOR @Libkolabxml_VERSION_MAJOR@)
set(Libkolabxml_VERSION_MINOR @Libkolabxml_VERSION_MINOR@)
set(Libkolabxml_VERSION_PATCH @Libkolabxml_VERSION_PATCH@)
-set(Libkolabxml_VERSION ${Libkolabxml_VERSION_MAJOR}.${Libkolabxml_VERSION_MINOR}.${Libkolabxml_VERSION_PATCH} )
+set(Libkolabxml_VERSION ${Libkolabxml_VERSION_MAJOR}.${Libkolabxml_VERSION_MINOR}.${Libkolabxml_VERSION_PATCH})
-# what is my include directory
-set(Libkolabxml_INSTALL_PREFIX "${rootDir}")
-set(Libkolabxml_INCLUDES "${rootDir}/@INCLUDE_INSTALL_DIR@")
+# Set the include directory
+set(Libkolabxml_INCLUDES "@CONF_INCLUDE_DIRS@")
# import the exported targets
-include(${myDir}/LibkolabxmlTargets.cmake)
+include(${Libkolab_CMAKE_DIR}/LibkolabxmlTargets.cmake)
# set the expected library variable
-set(Libkolabxml_LIBRARIES kolabxml )
+set(Libkolabxml_LIBRARIES kolabxml)
+