|
|
@@ -34,7 +34,11 @@ elseif (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 12.1)
|
|
|
endif()
|
|
|
|
|
|
if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 12.1)
|
|
|
- set(CMAKE_CXX98_STANDARD_COMPILE_OPTION "${_std}=c++98")
|
|
|
+ if("x${CMAKE_CXX_SIMULATE_ID}" STREQUAL "xMSVC")
|
|
|
+ set(CMAKE_CXX98_STANDARD_COMPILE_OPTION "${_std}=gnu++98")
|
|
|
+ else()
|
|
|
+ set(CMAKE_CXX98_STANDARD_COMPILE_OPTION "${_std}=c++98")
|
|
|
+ endif()
|
|
|
set(CMAKE_CXX98_EXTENSION_COMPILE_OPTION "${_std}=${_ext}98")
|
|
|
endif()
|
|
|
|