Features: Fix C++98 flags on Oracle SolarisStudio 12.4 on Linux

This commit is contained in:
Brad King 2015-09-30 09:46:49 -04:00
parent 61bc0f7363
commit c824b23d15
1 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,8 @@ set(CMAKE_CXX_CREATE_STATIC_LIBRARY
if (CMAKE_SYSTEM_NAME STREQUAL Linux)
if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.13)
set(CMAKE_CXX98_STANDARD_COMPILE_OPTION "-std=c++03")
set(CMAKE_CXX98_EXTENSION_COMPILE_OPTION "-std=c++03")
set(CMAKE_CXX11_STANDARD_COMPILE_OPTION "-std=c++11")
set(CMAKE_CXX11_EXTENSION_COMPILE_OPTION "-std=c++11")
endif()