diff options
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 |
commit | 65ee196a5405411fc1cb9f98438df35a8755a5ba (patch) | |
tree | 6eb8193526b11678bcd0981904c697e7eaeaf432 /CMakeLists.txt | |
parent | 045d16161a5f15558a446495d91b7cac0e2cbbfc (diff) | |
download | ejdb-65ee196a5405411fc1cb9f98438df35a8755a5ba.tar.gz ejdb-65ee196a5405411fc1cb9f98438df35a8755a5ba.tar.bz2 ejdb-65ee196a5405411fc1cb9f98438df35a8755a5ba.zip |
Work around a bug in CMake's CPack and install files correctly
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
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") |