summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/SunOS.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-05-03 13:23:57 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-05-03 13:23:57 (GMT)
commit0cfda4a7f09825c8852d5763a91097841612cda3 (patch)
tree270f827b0d492513ba08e8750137f0b79dd89aaa /Modules/Platform/SunOS.cmake
parent67029ab0e99db89bcd35a22b83dc1940bd6356ad (diff)
downloadCMake-0cfda4a7f09825c8852d5763a91097841612cda3.zip
CMake-0cfda4a7f09825c8852d5763a91097841612cda3.tar.gz
CMake-0cfda4a7f09825c8852d5763a91097841612cda3.tar.bz2
ENH: use correct flags for optimization
Diffstat (limited to 'Modules/Platform/SunOS.cmake')
-rw-r--r--Modules/Platform/SunOS.cmake12
1 files changed, 6 insertions, 6 deletions
diff --git a/Modules/Platform/SunOS.cmake b/Modules/Platform/SunOS.cmake
index ab96476..0d3f183 100644
--- a/Modules/Platform/SunOS.cmake
+++ b/Modules/Platform/SunOS.cmake
@@ -27,9 +27,9 @@ IF(CMAKE_SYSTEM MATCHES "SunOS-5*.")
ELSE(CMAKE_COMPILER_IS_GNUCC)
SET (CMAKE_C_FLAGS_INIT "")
SET (CMAKE_C_FLAGS_DEBUG_INIT "-g")
- SET (CMAKE_C_FLAGS_MINSIZEREL_INIT "-O3 -DNDEBUG")
- SET (CMAKE_C_FLAGS_RELEASE_INIT "-O2 -DNDEBUG")
- SET (CMAKE_C_FLAGS_RELWITHDEBINFO_INIT "-O2")
+ SET (CMAKE_C_FLAGS_MINSIZEREL_INIT "-xO3 -DNDEBUG")
+ SET (CMAKE_C_FLAGS_RELEASE_INIT "-xO2 -DNDEBUG")
+ SET (CMAKE_C_FLAGS_RELWITHDEBINFO_INIT "-xO2")
ENDIF(CMAKE_COMPILER_IS_GNUCC)
IF(CMAKE_COMPILER_IS_GNUCXX)
SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "-fPIC")
@@ -40,9 +40,9 @@ IF(CMAKE_SYSTEM MATCHES "SunOS-5*.")
ELSE(CMAKE_COMPILER_IS_GNUCXX)
SET (CMAKE_CXX_FLAGS_INIT "")
SET (CMAKE_CXX_FLAGS_DEBUG_INIT "-g")
- SET (CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-O3 -DNDEBUG")
- SET (CMAKE_CXX_FLAGS_RELEASE_INIT "-O2 -DNDEBUG")
- SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-O2")
+ SET (CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-xO3 -DNDEBUG")
+ SET (CMAKE_CXX_FLAGS_RELEASE_INIT "-xO2 -DNDEBUG")
+ SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-xO2")
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
ENDIF(CMAKE_SYSTEM MATCHES "SunOS-5*.")