diff options
author | DRC <dcommander@users.sourceforge.net> | 2011-10-12 21:29:34 +0000 |
---|---|---|
committer | DRC <dcommander@users.sourceforge.net> | 2011-10-12 21:29:34 +0000 |
commit | 7f2f25bb45ae0ec08975a7cff8a3208f29ff2583 (patch) | |
tree | 3af5fb759a8e8991f2818c2495094fb9403265ca | |
parent | 552f3db5f5bf2a4e3af28edad741395e1681e575 (diff) | |
download | tigervnc-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
-rw-r--r-- | CMakeLists.txt | 2 |
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") |