diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-05-22 21:28:51 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-05-26 17:26:40 (GMT) |
commit | 370d0d25315cc2fae38e1c6397b0094d43384c16 (patch) | |
tree | 699a6ab9dd33c29839e4254dff30366dc50f4794 /CompileFlags.cmake | |
parent | f1f21e3077cd6f1519d9a2b50e211b4c233d12cd (diff) | |
download | CMake-370d0d25315cc2fae38e1c6397b0094d43384c16.zip CMake-370d0d25315cc2fae38e1c6397b0094d43384c16.tar.gz CMake-370d0d25315cc2fae38e1c6397b0094d43384c16.tar.bz2 |
SunPro: update flags used for CMake itself
Special flags should no longer be required when CMake is built with a
recent version of CMake.
Diffstat (limited to 'CompileFlags.cmake')
-rw-r--r-- | CompileFlags.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CompileFlags.cmake b/CompileFlags.cmake index d1f4f13..7a9d4cd 100644 --- a/CompileFlags.cmake +++ b/CompileFlags.cmake @@ -59,7 +59,8 @@ if(CMAKE_SYSTEM_PROCESSOR MATCHES "^parisc") endif() endif() -if (CMAKE_CXX_COMPILER_ID STREQUAL SunPro) +if (CMAKE_CXX_COMPILER_ID STREQUAL SunPro AND + NOT DEFINED CMAKE_CXX${CMAKE_CXX_STANDARD}_STANDARD_COMPILE_OPTION) if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.13) if (NOT CMAKE_CXX_STANDARD OR CMAKE_CXX_STANDARD EQUAL 98) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++03") |