From 7bcd595da45a019d49fe3cea17171eefe7f227a2 Mon Sep 17 00:00:00 2001 From: Andrew Nelless Date: Thu, 9 Feb 2017 15:57:10 +0000 Subject: [PATCH] Tweak GUI CMakeLists --- src/gui/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index e7c54c17..28978ff0 100644 --- a/src/gui/CMakeLists.txt +++ b/src/gui/CMakeLists.txt @@ -9,7 +9,7 @@ set (CMAKE_INCLUDE_CURRENT_DIR ON) file (GLOB LEGACY_GUI_SOURCE_FILES src/*.cpp src/*.h) file (GLOB LEGACY_GUI_UI_FILES res/*.ui) -add_executable (synergy +add_executable (synergy WIN32 ${LEGACY_GUI_SOURCE_FILES} ${LEGACY_GUI_UI_FILES} res/Synergy.qrc @@ -27,7 +27,7 @@ endif() qt5_use_modules (synergy Core Widgets Network) target_link_libraries (synergy shared) target_compile_definitions (synergy PRIVATE -DVERSION_STAGE="${VERSION_STAGE}") -target_compile_definitions (synergy PRIVATE -DVERSION_REVISION="") +target_compile_definitions (synergy PRIVATE -DVERSION_REVISION="${SYNERGY_GIT_COMMIT}") if (WIN32) target_link_libraries (synergy ${DNSSD_LIB})