diff options
author | Renato Filho <renato.filho@openbossa.org> | 2010-08-18 18:13:39 -0300 |
---|---|---|
committer | Renato Filho <renato.filho@openbossa.org> | 2010-08-19 11:37:05 -0300 |
commit | b50262bc0a325ad8f79907cee6f70218e776c13d (patch) | |
tree | 31699d1503e0abbe6daa56950835b08c867a2924 /CMakeLists.txt | |
parent | b3d8877b8de94f6ddd166ab0c50acfc43a48574c (diff) |
Fix flags used when compiling using MSVC.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com>
Luciano Wolf <luciano.wolf@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 352b3b7eb..fa7654972 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,7 +18,7 @@ option(AVOID_PROTECTED_HACK "Avoid protected hack on generated bindings." FALSE) option(BUILD_TESTS "Build tests." TRUE) if(MSVC) - set(CMAKE_CXX_FLAGS "/DWIN32 /D_WINDOWS /w /EHsc- /GS- /GR- -D_SCL_SECURE_NO_WARNINGS") + set(CMAKE_CXX_FLAGS "/Zc:wchar_t- /GR /EHsc /DNOCOLOR /DWIN32 /D_WINDOWS /D_SCL_SECURE_NO_WARNINGS") else() if(CMAKE_HOST_UNIX) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fvisibility=hidden") |