summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-09-30 13:46:49 (GMT)
committerBrad King <brad.king@kitware.com>2015-09-30 13:48:29 (GMT)
commitc824b23d15b92247f3527f1b884c23d34e6749b5 (patch)
tree9e4ce64d049e04175126bd77e1b4577e964b8ba9
parent61bc0f7363ca2917707d57fefb52b79b0114bb19 (diff)
downloadCMake-c824b23d15b92247f3527f1b884c23d34e6749b5.zip
CMake-c824b23d15b92247f3527f1b884c23d34e6749b5.tar.gz
CMake-c824b23d15b92247f3527f1b884c23d34e6749b5.tar.bz2
Features: Fix C++98 flags on Oracle SolarisStudio 12.4 on Linux
-rw-r--r--Modules/Compiler/SunPro-CXX.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Compiler/SunPro-CXX.cmake b/Modules/Compiler/SunPro-CXX.cmake
index dccc25e..0e936ca 100644
--- a/Modules/Compiler/SunPro-CXX.cmake
+++ b/Modules/Compiler/SunPro-CXX.cmake
@@ -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()