diff options
-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") |