summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAndreas Schuh <andreas.schuh.84@gmail.com>2014-03-20 03:38:59 +0000
committerAndreas Schuh <andreas.schuh.84@gmail.com>2014-03-20 03:38:59 +0000
commitb6f61ab0ce802ca3f88cf497be5e91bcb64d5658 (patch)
tree2e94af327509004f3645b45bdb57f26c15e11fd9 /cmake
parent26a35dd2e4802997e90808e963a96cf1652c5c2c (diff)
downloadgflags-b6f61ab0ce802ca3f88cf497be5e91bcb64d5658.tar.gz
gflags-b6f61ab0ce802ca3f88cf497be5e91bcb64d5658.tar.bz2
gflags-b6f61ab0ce802ca3f88cf497be5e91bcb64d5658.zip
Fix bugs in package configuration file.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/package.cmake.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/package.cmake.in b/cmake/package.cmake.in
index 05f378f..d4419a1 100644
--- a/cmake/package.cmake.in
+++ b/cmake/package.cmake.in
@@ -19,7 +19,7 @@ if (CPACK_GENERATOR MATCHES "PackageMaker|DragNDrop")
# ------------------------------------------------------------------------------
# Debian package
-elseif ("^${CPACK_GENERATOR}$" STREQUAL "DEB")
+elseif (CPACK_GENERATOR MATCHES "DEB")
set (CPACK_PACKAGE_FILE_NAME "lib${CPACK_PACKAGE_NAME}")
if (DEVEL)
@@ -43,7 +43,7 @@ elseif ("^${CPACK_GENERATOR}$" STREQUAL "DEB")
# ------------------------------------------------------------------------------
# RPM package
-elseif ("^${CPACK_GENERATOR}$" STREQUAL "RPM")
+elseif (CPACK_GENERATOR MATCHES "RPM")
set (CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}")
if (DEVEL)