summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorŁukasz Stelmach <l.stelmach@samsung.com>2017-05-16 14:34:41 +0200
committerŁukasz Stelmach <l.stelmach@samsung.com>2017-05-16 14:38:32 +0200
commit65ee196a5405411fc1cb9f98438df35a8755a5ba (patch)
tree6eb8193526b11678bcd0981904c697e7eaeaf432
parent045d16161a5f15558a446495d91b7cac0e2cbbfc (diff)
downloadejdb-65ee196a5405411fc1cb9f98438df35a8755a5ba.tar.gz
ejdb-65ee196a5405411fc1cb9f98438df35a8755a5ba.tar.bz2
ejdb-65ee196a5405411fc1cb9f98438df35a8755a5ba.zip
Work around a bug in CMake's CPack and install files correctly
-rw-r--r--CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3fa114f..efe88de 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -71,6 +71,12 @@ else()
set(PACKAGE_DEB ON)
endif()
+if (CMAKE_VERSION VERSION_LESS 3.8.2)
+ if(NOT DEFINED CPACK_PACKAGING_INSTALL_PREFIX)
+ set(CPACK_PACKAGING_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
+ endif()
+endif()
+
set(CPACK_GENERATORS)
if (PACKAGE_TGZ)
list(APPEND CPACK_GENERATORS "TGZ")