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 <rkitover@gmail.com>
This commit is contained in:
Rafael Kitover 2020-03-18 01:01:19 +00:00
parent 166cf446f7
commit b21880ea15
No known key found for this signature in database
GPG Key ID: 08AB596679D86240
1 changed files with 5 additions and 1 deletions

View File

@ -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}")