From 042f4c334d854448852ede2a207e7e361e53c154 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Wed, 12 Mar 2008 21:54:27 -0400 Subject: ENH: fix crash in cpack when CPACK_CYGWIN_PATCH_NUMBER not specified --- CMakeCPackOptions.cmake.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'CMakeCPackOptions.cmake.in') 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 -- cgit v1.2.1