Work around a bug in CMake's CPack and install files correctly
authorŁukasz Stelmach <l.stelmach@samsung.com>
Tue, 16 May 2017 12:34:41 +0000 (14:34 +0200)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Tue, 16 May 2017 12:38:32 +0000 (14:38 +0200)
CMakeLists.txt

index 3fa114f..efe88de 100644 (file)
@@ -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")