summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2012-03-23 11:41:26 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2012-03-23 11:41:26 (GMT)
commit2a65c5e88e30b7ffef228f15abbf01b9a0bfbf92 (patch)
tree48d4966ffa1436dd432031e7b59032ebd02ff71d /cmake
parent4720ce81abc54aa6b034012db3cbf87f4d567db1 (diff)
downloadlibkolabxml-2a65c5e88e30b7ffef228f15abbf01b9a0bfbf92.tar.gz
Fix the header install directory
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/FindKolabInternal.cmake9
1 files changed, 8 insertions, 1 deletions
diff --git a/cmake/modules/FindKolabInternal.cmake b/cmake/modules/FindKolabInternal.cmake
index 1ccf0d5..9e817eb 100644
--- a/cmake/modules/FindKolabInternal.cmake
+++ b/cmake/modules/FindKolabInternal.cmake
@@ -6,6 +6,7 @@
# The Result of this can be overridden by setting KOLAB_LIB_INSTALL_DIR "cmake -DKOLAB_LIB_INSTALL_DIR=/usr/lib64/ ."
#
# The runtime install is controlled by KOLAB_BIN_INSTALL_DIR
+# The header install is controlled by KOLAB_HEADER_INSTALL_DIR
#
# KOLAB_INSTALL_DIRECTORIES contains the determined install directories and should be used with install commands
@@ -41,4 +42,10 @@ set(KOLAB_INSTALL_DIRECTORIES RUNTIME DESTINATION "${KOLAB_BIN_INSTALL_DIR}"
LIBRARY DESTINATION "${KOLAB_LIB_INSTALL_DIR}"
ARCHIVE DESTINATION "${KOLAB_LIB_INSTALL_DIR}" COMPONENT Devel )
-set(KOLAB_HEADER_INSTALL_DIR "${INCLUDE_INSTALL_DIR}/kolab")
+
+if(KOLAB_HEADER_INSTALL_DIR)
+ message("KOLAB_HEADER_INSTALL_DIR specified manually")
+else()
+ set(KOLAB_HEADER_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include")
+endif()
+message("KOLAB_HEADER_INSTALL_DIR: ${KOLAB_HEADER_INSTALL_DIR}")