From 65ee196a5405411fc1cb9f98438df35a8755a5ba Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Stelmach?= Date: Tue, 16 May 2017 14:34:41 +0200 Subject: [PATCH] Work around a bug in CMake's CPack and install files correctly --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) 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") -- 2.7.4