diff options
author | Brad King <brad.king@kitware.com> | 2017-05-28 13:22:29 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-05-28 13:22:33 (GMT) |
commit | d375618921e16c229e748c87ea16190f2de74337 (patch) | |
tree | 3a06ffc8c26a4e9fff41fde1b5a6ac320020b5aa /Modules | |
parent | ff1563199cfa36fca21889fce8a6b89bcb7db241 (diff) | |
parent | 370d0d25315cc2fae38e1c6397b0094d43384c16 (diff) | |
download | CMake-d375618921e16c229e748c87ea16190f2de74337.zip CMake-d375618921e16c229e748c87ea16190f2de74337.tar.gz CMake-d375618921e16c229e748c87ea16190f2de74337.tar.bz2 |
Merge topic 'sunpro-std-flags'
370d0d25 SunPro: update flags used for CMake itself
f1f21e30 SunPro: set -library=stlport as standard compile option for C++98
9316120c SunPro: add standard compile option for C++03
783fbb77 Tests: Compile entire Plugin test with the same language standard
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !879
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Compiler/SunPro-CXX.cmake | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Modules/Compiler/SunPro-CXX.cmake b/Modules/Compiler/SunPro-CXX.cmake index 5db7987..4b0a21d 100644 --- a/Modules/Compiler/SunPro-CXX.cmake +++ b/Modules/Compiler/SunPro-CXX.cmake @@ -37,11 +37,15 @@ set(CMAKE_CXX_CREATE_STATIC_LIBRARY "<CMAKE_RANLIB> <TARGET> ") if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.13) - set(CMAKE_CXX98_STANDARD_COMPILE_OPTION "") - set(CMAKE_CXX98_EXTENSION_COMPILE_OPTION "") + 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") set(CMAKE_CXX_LINK_WITH_STANDARD_COMPILE_OPTION 1) +else() + set(CMAKE_CXX98_STANDARD_COMPILE_OPTION "-library=stlport") + set(CMAKE_CXX98_EXTENSION_COMPILE_OPTION "-library=stlport") + set(CMAKE_CXX_LINK_WITH_STANDARD_COMPILE_OPTION 1) endif() __compiler_check_default_language_standard(CXX 5.13 98) |