diff options
Diffstat (limited to 'Modules/CPackZIP.cmake')
-rw-r--r-- | Modules/CPackZIP.cmake | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Modules/CPackZIP.cmake b/Modules/CPackZIP.cmake index bf7062a760..a36589bd63 100644 --- a/Modules/CPackZIP.cmake +++ b/Modules/CPackZIP.cmake @@ -14,21 +14,21 @@ if(CMAKE_BINARY_DIR) message(FATAL_ERROR "CPackZIP.cmake may only be used by CPack internally.") -endif(CMAKE_BINARY_DIR) +endif() find_program(ZIP_EXECUTABLE wzzip PATHS "$ENV{ProgramFiles}/WinZip") if(ZIP_EXECUTABLE) set(CPACK_ZIP_COMMAND "\"${ZIP_EXECUTABLE}\" -P \"<ARCHIVE>\" @<FILELIST>") set(CPACK_ZIP_NEED_QUOTES TRUE) -endif(ZIP_EXECUTABLE) +endif() if(NOT ZIP_EXECUTABLE) find_program(ZIP_EXECUTABLE 7z PATHS "$ENV{ProgramFiles}/7-Zip") if(ZIP_EXECUTABLE) set(CPACK_ZIP_COMMAND "\"${ZIP_EXECUTABLE}\" a -tzip \"<ARCHIVE>\" @<FILELIST>") set(CPACK_ZIP_NEED_QUOTES TRUE) - endif(ZIP_EXECUTABLE) -endif(NOT ZIP_EXECUTABLE) + endif() +endif() if(NOT ZIP_EXECUTABLE) find_package(Cygwin) @@ -36,6 +36,6 @@ if(NOT ZIP_EXECUTABLE) if(ZIP_EXECUTABLE) set(CPACK_ZIP_COMMAND "\"${ZIP_EXECUTABLE}\" -r \"<ARCHIVE>\" . -i@<FILELIST>") set(CPACK_ZIP_NEED_QUOTES FALSE) - endif(ZIP_EXECUTABLE) -endif(NOT ZIP_EXECUTABLE) + endif() +endif() |