diff options
-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") |