summaryrefslogtreecommitdiffstats
path: root/CMakeCPackOptions.cmake.in
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-03-13 01:54:27 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-03-13 01:54:27 (GMT)
commit042f4c334d854448852ede2a207e7e361e53c154 (patch)
treedfccab0829f6b90046b7719e3d07a0afd054429e /CMakeCPackOptions.cmake.in
parent5ab6c0f0ed39136bd778a6f982691e5142a7aceb (diff)
downloadCMake-042f4c334d854448852ede2a207e7e361e53c154.zip
CMake-042f4c334d854448852ede2a207e7e361e53c154.tar.gz
CMake-042f4c334d854448852ede2a207e7e361e53c154.tar.bz2
ENH: fix crash in cpack when CPACK_CYGWIN_PATCH_NUMBER not specified
Diffstat (limited to 'CMakeCPackOptions.cmake.in')
-rw-r--r--CMakeCPackOptions.cmake.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/CMakeCPackOptions.cmake.in b/CMakeCPackOptions.cmake.in
index e20cdc4..0c571d0 100644
--- a/CMakeCPackOptions.cmake.in
+++ b/CMakeCPackOptions.cmake.in
@@ -32,8 +32,9 @@ if(CPACK_GENERATOR MATCHES "NSIS")
SET(CPACK_NSIS_CONTACT @CPACK_PACKAGE_CONTACT@)
SET(CPACK_NSIS_MODIFY_PATH ON)
endif(CPACK_GENERATOR MATCHES "NSIS")
-# include the cpack options
-INCLUDE("@QT_DIALOG_CPACK_OPTIONS_FILE@")
+# include the cpack options for qt dialog if they exisit
+# they might not if qt was not enabled for the build
+INCLUDE("@QT_DIALOG_CPACK_OPTIONS_FILE@" OPTIONAL)
if(CPACK_GENERATOR MATCHES "CygwinSource")
# when packaging source make sure the .build directory is not included