diff options
author | Yaakov <yselkowitz@users.sourceforge.net> | 2011-10-27 14:42:40 -0200 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-10-27 14:42:40 -0200 |
commit | b6f64d342c0dd3926eb675c75f040d12840a9043 (patch) | |
tree | e0bbf653791588a45bc35240957c36dd64e88026 /CMakeLists.txt | |
parent | c09b41d09861d1b2ac801188d92fce84aa3114f5 (diff) |
Fix bug 1009 - "GeneratorRunner Cygwin patch"
Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>
Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b641f44ad..a5b60abe0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,7 +14,7 @@ if(MSVC) set(CMAKE_CXX_FLAGS "/Zc:wchar_t- /EHsc /DWIN32 /D_WINDOWS /D_SCL_SECURE_NO_WARNINGS") else() option(ENABLE_GCC_OPTIMIZATION "Enable specific GCC flags to optimize library size and performance. Only available on Release Mode" 0) - if (CMAKE_HOST_UNIX) + if (CMAKE_HOST_UNIX AND NOT CYGWIN) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fvisibility=hidden") endif() set(CMAKE_CXX_FLAGS_DEBUG "-g") |