summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/IRIX.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-11-09 18:43:16 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-11-09 18:43:16 (GMT)
commitac481e0ee96554945bca25bde70e3d2e43d0c73b (patch)
tree7bd8777fbc295afff9a7b9f13de81f08ee058fe5 /Modules/Platform/IRIX.cmake
parent1ccd1efe3e7c7147f25549ca90c4a58f9f153d6a (diff)
downloadCMake-ac481e0ee96554945bca25bde70e3d2e43d0c73b.zip
CMake-ac481e0ee96554945bca25bde70e3d2e43d0c73b.tar.gz
CMake-ac481e0ee96554945bca25bde70e3d2e43d0c73b.tar.bz2
fix for cxxflags
Diffstat (limited to 'Modules/Platform/IRIX.cmake')
-rw-r--r--Modules/Platform/IRIX.cmake14
1 files changed, 8 insertions, 6 deletions
diff --git a/Modules/Platform/IRIX.cmake b/Modules/Platform/IRIX.cmake
index 8c720ab..9117a74 100644
--- a/Modules/Platform/IRIX.cmake
+++ b/Modules/Platform/IRIX.cmake
@@ -6,12 +6,14 @@ SET(CMAKE_SHARED_LIBRARY_RUNTIME_FLAG_SEP "") # : or empty
IF(NOT CMAKE_COMPILER_IS_GNUCXX)
SET(CMAKE_CXX_CREATE_STATIC_LIBRARY
"<CMAKE_CXX_COMPILER> -ar -o <TARGET> <OBJECTS>")
- SET (CMAKE_CXX_FLAGS "")
- SET (CMAKE_CXX_FLAGS_DEBUG "-g")
- SET (CMAKE_CXX_FLAGS_MINSIZEREL "-O3")
- SET (CMAKE_CXX_FLAGS_RELEASE "-O2")
- SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2")
- SET (CMAKE_C_FLAGS "")
+ IF(NOT CMAKE_CXX_FLAGS)
+ SET (CMAKE_CXX_FLAGS "")
+ SET (CMAKE_CXX_FLAGS_DEBUG "-g")
+ SET (CMAKE_CXX_FLAGS_MINSIZEREL "-O3")
+ SET (CMAKE_CXX_FLAGS_RELEASE "-O2")
+ SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2")
+ SET (CMAKE_C_FLAGS "")
+ ENDIF(NOT CMAKE_CXX_FLAGS)
ELSE(NOT CMAKE_COMPILER_IS_GNUCXX)
INCLUDE(${CMAKE_ROOT}/Modules/Platform/gcc.cmake)
ENDIF(NOT CMAKE_COMPILER_IS_GNUCXX)