Commit c8e5d1b2 authored by Brad King's avatar Brad King

Pass C++ standard flags to SunPro in standalone build

Pass flags to the SunPro compiler to improve the level of C++ standard
support beyond the default.  Do this only in a standalone build so that
host projects can set flags for us.

Change-Id: Ic9a84debfa939caf00b7ad99887793e885c35371
parent b9df3e48
......@@ -311,6 +311,15 @@ IF(NOT CMAKE_COMPILER_IS_GNUCXX)
ENDIF()
ENDIF()
ENDIF()
IF(KWSYS_STANDALONE)
IF(CMAKE_CXX_COMPILER_ID STREQUAL SunPro)
IF(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.13)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++03")
ELSE()
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -library=stlport4")
ENDIF()
ENDIF()
ENDIF()
#-----------------------------------------------------------------------------
# Configure Large File Support.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment