diff --git a/CMakeLists.txt b/CMakeLists.txt index efb7d9930b6..e7bb50c6dae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -180,7 +180,7 @@ if (MSVC) # set variable to state that we are using jom makefiles set(JOM TRUE) endif () - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /fp:fast /Zc:cplusplus") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /fp:fast /Zc:__cplusplus") if (NOT OGRE_PLATFORM_X64) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /arch:SSE2") endif()