summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorDRC <dcommander@users.sourceforge.net>2011-10-12 21:29:34 +0000
committerDRC <dcommander@users.sourceforge.net>2011-10-12 21:29:34 +0000
commit7f2f25bb45ae0ec08975a7cff8a3208f29ff2583 (patch)
tree3af5fb759a8e8991f2818c2495094fb9403265ca /CMakeLists.txt
parent552f3db5f5bf2a4e3af28edad741395e1681e575 (diff)
downloadtigervnc-7f2f25bb45ae0ec08975a7cff8a3208f29ff2583.tar.gz
tigervnc-7f2f25bb45ae0ec08975a7cff8a3208f29ff2583.zip
This is subtle, but add_definitions() also adds definitions to the windres command line when building with MinGW, and this causes subsequent barfage because windres doesn't grok the -static-libgcc flag.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4726 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 15394d6b..d39a2b86 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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")