summaryrefslogtreecommitdiff
path: root/CMakeCPackOptions.cmake.in
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-03-12 21:54:27 -0400
committerBill Hoffman <bill.hoffman@kitware.com>2008-03-12 21:54:27 -0400
commit042f4c334d854448852ede2a207e7e361e53c154 (patch)
treedfccab0829f6b90046b7719e3d07a0afd054429e /CMakeCPackOptions.cmake.in
parent5ab6c0f0ed39136bd778a6f982691e5142a7aceb (diff)
downloadcmake-042f4c334d854448852ede2a207e7e361e53c154.tar.gz
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 e20cdc41fd..0c571d069b 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