From 5e14bbd1cdae88a1604c0cc5a9916a635f109561 Mon Sep 17 00:00:00 2001 From: abma Date: Mon, 23 Mar 2020 11:09:27 +0100 Subject: [PATCH] fix #155: use correct subsystem on windows --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8d0e4477..9742c48e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -542,7 +542,12 @@ if(ASAN) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address,undefined") endif() -add_executable (nheko ${OS_BUNDLE} ${NHEKO_DEPS}) +if(WIN32) + add_executable (nheko WIN32 ${OS_BUNDLE} ${NHEKO_DEPS}) +else() + add_executable (nheko ${OS_BUNDLE} ${NHEKO_DEPS}) +endif() + if(APPLE) target_link_libraries (nheko PRIVATE Qt5::MacExtras) elseif(WIN32)