From: Peter Åstrand Date: Tue, 5 Jul 2011 09:19:42 +0000 (+0000) Subject: Build with -Wl,-subsystem,windows on Windows, to avoid console window. X-Git-Tag: v1.1.90~223 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=db56f5132a455efa753b300453b6efb9db794bfa;p=tigervnc.git Build with -Wl,-subsystem,windows on Windows, to avoid console window. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4575 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 159de720..cda85ca1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -309,6 +309,9 @@ add_subdirectory(common) if(WIN32) add_subdirectory(win) + if(CMAKE_C_COMPILER_ID STREQUAL GNU) + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-subsystem,windows") + endif(CMAKE_C_COMPILER_ID STREQUAL GNU) else() # No interest in building x related parts on Apple if(NOT APPLE)