]> source.dussan.org Git - tigervnc.git/commitdiff
Build with -Wl,-subsystem,windows on Windows, to avoid console window.
authorPeter Åstrand <astrand@cendio.se>
Tue, 5 Jul 2011 09:19:42 +0000 (09:19 +0000)
committerPeter Åstrand <astrand@cendio.se>
Tue, 5 Jul 2011 09:19:42 +0000 (09:19 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4575 3789f03b-4d11-0410-bbf8-ca57d06f2519

CMakeLists.txt

index 159de7200cf9cbedb8b61f4b3a9981554ef1c37d..cda85ca19f4b1149662f0faae4d620423e435c96 100644 (file)
@@ -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)