From 256347f6ef9d902fea34c2be7c048e6db10da23d Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Tue, 12 Jan 2016 17:52:59 -0800 Subject: [PATCH] use direct comparison instead of define check --- cmake/templates/NSIS.template.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmake/templates/NSIS.template.in b/cmake/templates/NSIS.template.in index 1907113417..d8c3a59eaf 100644 --- a/cmake/templates/NSIS.template.in +++ b/cmake/templates/NSIS.template.in @@ -6,7 +6,6 @@ !define VERSION "@CPACK_PACKAGE_VERSION@" !define PATCH "@CPACK_PACKAGE_VERSION_PATCH@" !define INST_DIR "@CPACK_TEMPORARY_DIRECTORY@" - !define PRODUCTION_BUILD "@PRODUCTION_BUILD@" ;-------------------------------- ;Variables @@ -52,7 +51,7 @@ ; The Inner invocation has written an uninstaller binary for us. ; We need to sign it if it's a production or PR build. - !ifdef PRODUCTION_BUILD + !if @PRODUCTION_BUILD@ == 1 !system "@SIGNTOOL_EXECUTABLE@ sign /f %HF_PFX_FILE% /p %HF_PFX_PASSPHRASE% /tr http://tsa.starfieldtech.com /td SHA256 $%TEMP%\uninstaller.exe" = 0 !endif