From ba0062b5430e46269d64d52be78f7f5ce1df0c88 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 3 Sep 2014 08:24:14 +0200 Subject: [PATCH] Update CFLAGS/CXXFLAGS for the SunPro compiler refs #6896 --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 487e7528e..404947b26 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -97,6 +97,11 @@ if("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Qunused-arguments -g") endif() +if("${CMAKE_C_COMPILER_ID}" STREQUAL "SunPro") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mt") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mt -library=stlport4") +endif() + if("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g") if(${CMAKE_SYSTEM_NAME} MATCHES AIX)