Oh cmake. You so silly. VS2010 wchar_t fix

This commit is contained in:
Shyotl
2011-03-17 00:37:18 -05:00
parent 0eab7bd2a5
commit 1166db3436

View File

@@ -65,7 +65,7 @@ if (WINDOWS)
/Oy- /Oy-
) )
if(MSVC80 OR MSVC90 OR MSVC100) if(MSVC80 OR MSVC90 OR MSVC10)
set(CMAKE_CXX_FLAGS_RELEASE set(CMAKE_CXX_FLAGS_RELEASE
"${CMAKE_CXX_FLAGS_RELEASE} -D_SECURE_STL=0 -D_HAS_ITERATOR_DEBUGGING=0" "${CMAKE_CXX_FLAGS_RELEASE} -D_SECURE_STL=0 -D_HAS_ITERATOR_DEBUGGING=0"
CACHE STRING "C++ compiler release options" FORCE) CACHE STRING "C++ compiler release options" FORCE)
@@ -78,7 +78,7 @@ if (WINDOWS)
add_definitions( add_definitions(
/Zc:wchar_t- /Zc:wchar_t-
) )
endif (MSVC80 OR MSVC90 OR MSVC100) endif (MSVC80 OR MSVC90 OR MSVC10)
# Are we using the crummy Visual Studio KDU build workaround? # Are we using the crummy Visual Studio KDU build workaround?
if (NOT VS_DISABLE_FATAL_WARNINGS) if (NOT VS_DISABLE_FATAL_WARNINGS)