summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2013-07-11 16:26:45 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2013-07-11 16:26:45 (GMT)
commit084987d42d837922bc71bd6810ed89f63a36513a (patch)
tree83a16863be03ce2d38a22bf4e6e621156d98e256 /cmake
parent3348ce26433243209569ec2d933d47e63591431c (diff)
downloadlibkolab-084987d42d837922bc71bd6810ed89f63a36513a.tar.gz
Deal with relative as well as absolute install paths.
Bug: 2001
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/LibkolabConfig.cmake.in12
1 files changed, 5 insertions, 7 deletions
diff --git a/cmake/modules/LibkolabConfig.cmake.in b/cmake/modules/LibkolabConfig.cmake.in
index cf0555b..f80e6e2 100644
--- a/cmake/modules/LibkolabConfig.cmake.in
+++ b/cmake/modules/LibkolabConfig.cmake.in
@@ -1,18 +1,16 @@
-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(Libkolab_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(Libkolab_VERSION_MAJOR @Libkolab_VERSION_MAJOR@)
set(Libkolab_VERSION_MINOR @Libkolab_VERSION_MINOR@)
set(Libkolab_VERSION_PATCH @Libkolab_VERSION_PATCH@)
set(Libkolab_VERSION ${Libkolab_VERSION_MAJOR}.${Libkolab_VERSION_MINOR}.${Libkolab_VERSION_PATCH} )
-# what is my include directory
-set(Libkolab_INSTALL_PREFIX "${rootDir}")
-set(Libkolab_INCLUDES "${rootDir}/@INCLUDE_INSTALL_DIR@")
+# Set the include directory
+set(Libkolab_INCLUDES "@CONF_INCLUDE_DIRS@")
# import the exported targets
-include(${myDir}/LibkolabTargets.cmake)
+include(${Libkolab_CMAKE_DIR}/LibkolabTargets.cmake)
# set the expected library variable
set(Libkolab_LIBRARIES kolab )