summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/OSF1.cmake
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2004-05-05 14:41:40 (GMT)
committerKen Martin <ken.martin@kitware.com>2004-05-05 14:41:40 (GMT)
commitd8ae50b87c25ad35daec2760f64c30a148a8c4bd (patch)
treebf22e1eed66c2da1d3bc30a166c4dbbcd8dff643 /Modules/Platform/OSF1.cmake
parent0e092901484c9d46584d105681822338d007c110 (diff)
downloadCMake-d8ae50b87c25ad35daec2760f64c30a148a8c4bd.zip
CMake-d8ae50b87c25ad35daec2760f64c30a148a8c4bd.tar.gz
CMake-d8ae50b87c25ad35daec2760f64c30a148a8c4bd.tar.bz2
a guess at some OSF compiler flags
Diffstat (limited to 'Modules/Platform/OSF1.cmake')
-rw-r--r--Modules/Platform/OSF1.cmake21
1 files changed, 18 insertions, 3 deletions
diff --git a/Modules/Platform/OSF1.cmake b/Modules/Platform/OSF1.cmake
index 5249f60..2ca62b1 100644
--- a/Modules/Platform/OSF1.cmake
+++ b/Modules/Platform/OSF1.cmake
@@ -3,7 +3,7 @@ SET(CMAKE_DL_LIBS "")
IF(CMAKE_SYSTEM MATCHES "OSF1-1.[012]")
ENDIF(CMAKE_SYSTEM MATCHES "OSF1-1.[012]")
IF(CMAKE_SYSTEM MATCHES "OSF1-1.*")
- # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2
+ # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2
SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fpic") # -pic
SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "-fpic") # -pic
ENDIF(CMAKE_SYSTEM MATCHES "OSF1-1.*")
@@ -26,5 +26,20 @@ IF(CMAKE_SYSTEM MATCHES "OSF1-V.*")
SET(CMAKE_SHARED_LIBRARY_RUNTIME_FLAG_SEP ":")
ENDIF(CMAKE_SYSTEM MATCHES "OSF1-V.*")
-# include the gcc flags
-INCLUDE(${CMAKE_ROOT}/Modules/Platform/gcc.cmake)
+
+IF(CMAKE_COMPILER_IS_GNUCXX)
+ # include the gcc flags
+ INCLUDE(${CMAKE_ROOT}/Modules/Platform/gcc.cmake)
+ELSE (CMAKE_COMPILER_IS_GNUCXX)
+ # use default OSF compiler flags
+ SET (CMAKE_C_FLAGS_INIT "")
+ SET (CMAKE_C_FLAGS_DEBUG_INIT "-g")
+ SET (CMAKE_C_FLAGS_MINSIZEREL_INIT "-O2")
+ SET (CMAKE_C_FLAGS_RELEASE_INIT "-O2")
+ SET (CMAKE_C_FLAGS_RELWITHDEBINFO_INIT "-O2")
+ SET (CMAKE_CXX_FLAGS_INIT "")
+ SET (CMAKE_CXX_FLAGS_DEBUG_INIT "-g")
+ SET (CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-O2")
+ SET (CMAKE_CXX_FLAGS_RELEASE_INIT "-O2")
+ SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-O2")
+ENDIF(CMAKE_COMPILER_IS_GNUCXX)