From 29ca4b76ac4583e83542757c3933f066ccf8a518 Mon Sep 17 00:00:00 2001 From: "Jerry (Xinyu Hou)" Date: Thu, 4 May 2017 21:00:49 +0100 Subject: [PATCH] Stop building installer if specified --- CMakeLists.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3f33467f..aa746ff0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -379,6 +379,7 @@ macro (configure_files srcDir destDir) endforeach (templateFile) endmacro (configure_files) +if (${SYNERGY_BUILD_LEGACY_INSTALLER}) # # macOS app Bundle # @@ -396,12 +397,8 @@ endif() # Windows installer # if (${CMAKE_SYSTEM_NAME} MATCHES "Windows") - if (${SYNERGY_BUILD_LEGACY_INSTALLER}) message (STATUS "Configuring the v1 installer") configure_files (${CMAKE_CURRENT_SOURCE_DIR}/dist/wix ${CMAKE_BINARY_DIR}/installer) - else() - message (STATUS "NOT configuring the v1 installer") - endif() endif() # @@ -417,4 +414,8 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Linux") endif() endif() +else() + message (STATUS "NOT configuring the v1 installer") +endif() add_subdirectory (src) +ctory (src)