Don't look for non-existent executable if no shared build on Windows

This commit is contained in:
Ian Craggs 2020-03-31 11:12:26 +01:00
parent 12551f29d3
commit 37bc70442d
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ after_build:
7z rn %ZIPNAME% build.paho\src\samples bin
7z a %ZIPNAME% %APPVEYOR_BUILD_FOLDER%\build.paho\src\MQTTVersion.exe
if "%PAHO_BUILD_SHARED%" == "TRUE" "7z a %ZIPNAME% %APPVEYOR_BUILD_FOLDER%\build.paho\src\MQTTVersion.exe"
7z rn %ZIPNAME% MQTTVersion.exe bin\MQTTVersion.exe