summaryrefslogtreecommitdiff
path: root/distribution/posix/package.txt
diff options
context:
space:
mode:
Diffstat (limited to 'distribution/posix/package.txt')
-rw-r--r--distribution/posix/package.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/distribution/posix/package.txt b/distribution/posix/package.txt
new file mode 100644
index 0000000..a4e925e
--- /dev/null
+++ b/distribution/posix/package.txt
@@ -0,0 +1,8 @@
+IF(CPACK_GENERATOR STREQUAL "TGZ" OR CPACK_GENERATOR STREQUAL "TBZ2")
+ set(CPACK_PACKAGING_INSTALL_PREFIX "")
+ELSEIF (CPACK_GENERATOR STREQUAL "RPM" )
+ set(CPACK_PACKAGING_INSTALL_PREFIX ${CPACK_INSTALL_PREFIX})
+ELSEIF (CPACK_GENERATOR STREQUAL "STGZ")
+ set(CPACK_PACKAGING_INSTALL_PREFIX "")
+ENDIF()
+