From b21880ea1572cb3ae43c48b5789eec4a57bf8afc Mon Sep 17 00:00:00 2001 From: Rafael Kitover Date: Wed, 18 Mar 2020 01:01:19 +0000 Subject: [PATCH] cmake: Zip suffix fix for 60f05ced. Fix problem with the ZIP_SUFFIX option, which causes zip files to have a suffix of "OFF" if the option is not set. Signed-off-by: Rafael Kitover --- src/wx/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/wx/CMakeLists.txt b/src/wx/CMakeLists.txt index 34ce8693..c5e05d6e 100644 --- a/src/wx/CMakeLists.txt +++ b/src/wx/CMakeLists.txt @@ -1017,7 +1017,11 @@ if(GPG_PROGRAM) ) endif() -option(ZIP_SUFFIX [=[suffix for release zip files, e.g. "-somebranch".zip]=] "") +option(ZIP_SUFFIX [=[suffix for release zip files, e.g. "-somebranch".zip]=] OFF) + +if(NOT ZIP_SUFFIX) + set(ZIP_SUFFIX "") +endif() if(UPSTREAM_RELEASE AND WIN32) set(home "$ENV{HOME}")