]> source.dussan.org Git - tigervnc.git/commitdiff
This is subtle, but add_definitions() also adds definitions to the windres command...
authorDRC <dcommander@users.sourceforge.net>
Wed, 12 Oct 2011 21:29:34 +0000 (21:29 +0000)
committerDRC <dcommander@users.sourceforge.net>
Wed, 12 Oct 2011 21:29:34 +0000 (21:29 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4726 3789f03b-4d11-0410-bbf8-ca57d06f2519

CMakeLists.txt

index 15394d6bf3903974d55168e57beac23d60e8a4bb..d39a2b86343fb386f13814837325a8ea8e2985bb 100644 (file)
@@ -144,7 +144,7 @@ if(CMAKE_COMPILER_IS_GNUCXX AND NOT APPLE AND NOT CYGWIN)
     else()
       message(WARNING Cannot find static libstdc++.  TigerVNC will depend on dynamic libstdc++.)
     endif()
-    add_definitions(-static-libgcc)
+    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libgcc")
     set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc")
     set(CMAKE_SHARED_LINKER_FLAGS
       "${CMAKE_SHARED_LINKER_FLAGS} -static-libgcc")