From 9fb3d06aac650c538e3cd48c155aade015196c90 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Wed, 28 Nov 2018 17:44:45 +0100 Subject: [PATCH] Change if statement in qtsingleapplication/CMakeLists.txt --- 3rdparty/qtsingleapplication/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/3rdparty/qtsingleapplication/CMakeLists.txt b/3rdparty/qtsingleapplication/CMakeLists.txt index eda4df049..0a03d69d0 100644 --- a/3rdparty/qtsingleapplication/CMakeLists.txt +++ b/3rdparty/qtsingleapplication/CMakeLists.txt @@ -13,11 +13,11 @@ set(SINGLEAPP-MOC-HEADERS qtsinglecoreapplication.h ) -if(WIN32) - set(SINGLEAPP-SOURCES ${SINGLEAPP-SOURCES} qtlockedfile_win.cpp) -elseif(WIN32) +if(UNIX) set(SINGLEAPP-SOURCES ${SINGLEAPP-SOURCES} qtlockedfile_unix.cpp) -endif(WIN32) +elseif(WIN32) + set(SINGLEAPP-SOURCES ${SINGLEAPP-SOURCES} qtlockedfile_win.cpp) +endif() QT5_WRAP_CPP(SINGLEAPP-SOURCES-MOC ${SINGLEAPP-MOC-HEADERS})