2002-11-08 23:46:08 +03:00
|
|
|
SET(CMAKE_DL_LIBS "")
|
|
|
|
|
|
|
|
IF(CMAKE_SYSTEM MATCHES "OSF1-1.[012]")
|
|
|
|
ENDIF(CMAKE_SYSTEM MATCHES "OSF1-1.[012]")
|
|
|
|
IF(CMAKE_SYSTEM MATCHES "OSF1-1.*")
|
2004-05-05 18:41:40 +04:00
|
|
|
# OSF/1 1.3 from OSF using ELF, and derivatives, including AD2
|
2012-05-05 23:11:35 +04:00
|
|
|
SET(CMAKE_C_COMPILE_OPTIONS_PIC "-fpic")
|
|
|
|
SET(CMAKE_C_COMPILE_OPTIONS_PIE "-fpie")
|
|
|
|
SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fpic") # -pic
|
2002-11-08 23:46:08 +03:00
|
|
|
SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "-fpic") # -pic
|
|
|
|
ENDIF(CMAKE_SYSTEM MATCHES "OSF1-1.*")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IF(CMAKE_SYSTEM MATCHES "OSF1-V.*")
|
|
|
|
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared -Wl,-expect_unresolved,\\*") # -shared
|
|
|
|
IF(CMAKE_COMPILER_IS_GNUCXX)
|
2003-01-05 19:24:36 +03:00
|
|
|
SET(CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG "-Wl,-rpath,")
|
2002-11-08 23:46:08 +03:00
|
|
|
ELSE(CMAKE_COMPILER_IS_GNUCXX)
|
2003-01-02 16:51:23 +03:00
|
|
|
SET(CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG "-rpath ")
|
2002-11-08 23:46:08 +03:00
|
|
|
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
|
2003-01-02 16:51:23 +03:00
|
|
|
IF(CMAKE_COMPILER_IS_GNUCC)
|
2004-09-22 22:42:05 +04:00
|
|
|
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-rpath,")
|
2003-01-02 16:51:23 +03:00
|
|
|
ELSE(CMAKE_COMPILER_IS_GNUCC)
|
2004-09-22 22:42:05 +04:00
|
|
|
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-rpath ")
|
2003-01-02 16:51:23 +03:00
|
|
|
ENDIF(CMAKE_COMPILER_IS_GNUCC)
|
2004-09-22 22:42:05 +04:00
|
|
|
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":")
|
2002-11-08 23:46:08 +03:00
|
|
|
ENDIF(CMAKE_SYSTEM MATCHES "OSF1-V.*")
|
|
|
|
|
2010-06-10 19:15:31 +04:00
|
|
|
SET(CMAKE_MAKE_INCLUDE_FROM_ROOT 1) # include $(CMAKE_BINARY_DIR)/...
|
2004-05-05 18:41:40 +04:00
|
|
|
|
|
|
|
IF(CMAKE_COMPILER_IS_GNUCXX)
|
|
|
|
# include the gcc flags
|
|
|
|
ELSE (CMAKE_COMPILER_IS_GNUCXX)
|
|
|
|
# use default OSF compiler flags
|
|
|
|
SET (CMAKE_C_FLAGS_INIT "")
|
|
|
|
SET (CMAKE_C_FLAGS_DEBUG_INIT "-g")
|
2004-06-01 22:08:04 +04:00
|
|
|
SET (CMAKE_C_FLAGS_MINSIZEREL_INIT "-O2 -DNDEBUG")
|
|
|
|
SET (CMAKE_C_FLAGS_RELEASE_INIT "-O2 -DNDEBUG")
|
2004-05-05 18:41:40 +04:00
|
|
|
SET (CMAKE_C_FLAGS_RELWITHDEBINFO_INIT "-O2")
|
|
|
|
SET (CMAKE_CXX_FLAGS_INIT "")
|
|
|
|
SET (CMAKE_CXX_FLAGS_DEBUG_INIT "-g")
|
2004-06-01 22:08:04 +04:00
|
|
|
SET (CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-O2 -DNDEBUG")
|
|
|
|
SET (CMAKE_CXX_FLAGS_RELEASE_INIT "-O2 -DNDEBUG")
|
2004-05-05 18:41:40 +04:00
|
|
|
SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-O2")
|
|
|
|
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
|
2006-03-27 19:46:42 +04:00
|
|
|
INCLUDE(Platform/UnixPaths)
|