diff --git a/Code/Mantid/Build/CMake/WindowsSetup.cmake b/Code/Mantid/Build/CMake/WindowsSetup.cmake index e95307292c74..f7a0ce3ea49f 100644 --- a/Code/Mantid/Build/CMake/WindowsSetup.cmake +++ b/Code/Mantid/Build/CMake/WindowsSetup.cmake @@ -29,7 +29,9 @@ endif() # as a level 3 warning # /w34389 - Treat warning C4389, about equality comparison on unsigned # and signed, as a level 3 warning -set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP /w34296 /w34389" ) +# /Zc:wchar_t- - Do not treat wchar_t as a builtin type. Required for Qt to +# work with wstring +set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP /w34296 /w34389 /Zc:wchar_t-" ) # As discussed here: http://code.google.com/p/googletest/issues/detail?id=412 # gtest requires changing the _VARAIDIC_MAX value for VS2012 as it defaults to 5 if ( MSVC_VERSION EQUAL 1700 )