diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-05-22 21:22:59 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-05-26 17:26:39 (GMT) |
commit | f1f21e3077cd6f1519d9a2b50e211b4c233d12cd (patch) | |
tree | 20d00a32f00876a6399d1180f2ac1284fddef838 /Modules/Compiler | |
parent | 9316120c80119c64a8d201bd70d7c58852ff6d7e (diff) | |
download | CMake-f1f21e3077cd6f1519d9a2b50e211b4c233d12cd.zip CMake-f1f21e3077cd6f1519d9a2b50e211b4c233d12cd.tar.gz CMake-f1f21e3077cd6f1519d9a2b50e211b4c233d12cd.tar.bz2 |
SunPro: set -library=stlport as standard compile option for C++98
Diffstat (limited to 'Modules/Compiler')
-rw-r--r-- | Modules/Compiler/SunPro-CXX.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/Compiler/SunPro-CXX.cmake b/Modules/Compiler/SunPro-CXX.cmake index f8030f1..4b0a21d 100644 --- a/Modules/Compiler/SunPro-CXX.cmake +++ b/Modules/Compiler/SunPro-CXX.cmake @@ -42,6 +42,10 @@ if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.13) 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) |