From a04c8cb41cc24adfe0903863973da66686b5fbae Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Sat, 18 Apr 2020 20:42:38 +0200 Subject: [PATCH] cosmetic --- client/CMakeLists.txt | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index ee7f6c7ad..43529809e 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -224,12 +224,6 @@ if (MINGW) set(CMAKE_CXX_FLAGS "-mno-ms-bitfields -fexec-charset=cp850 ${CMAKE_CXX_FLAGS}") endif (MINGW) -if(NOT Qt5_FOUND) - message("Qt5 library not found, not building gui") - set(TARGET_SOURCES - src/guidummy.cpp - ${TARGET_SOURCES}) -endif(NOT Qt5_FOUND) if (Qt5_FOUND) message("Qt5 library found, building gui :)") set (TARGET_SOURCES @@ -239,6 +233,11 @@ if (Qt5_FOUND) add_definitions("-DHAVE_GUI") set(ADDITIONAL_LNK Qt5::Core Qt5::Widgets Qt5::Gui ${ADDITIONAL_LNK}) +else (Qt5_FOUND) + message("Qt5 library not found, not building gui") + set(TARGET_SOURCES + src/guidummy.cpp + ${TARGET_SOURCES}) endif (Qt5_FOUND) add_executable(