2012-08-13 21:47:32 +04:00
|
|
|
set(CMAKE_DL_LIBS "")
|
2002-11-08 23:46:08 +03:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
if(CMAKE_SYSTEM MATCHES "OSF1-1.[012]")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2014-04-11 20:17:46 +04:00
|
|
|
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-08-13 21:47:32 +04:00
|
|
|
set(CMAKE_C_COMPILE_OPTIONS_PIC "-fpic")
|
|
|
|
set(CMAKE_C_COMPILE_OPTIONS_PIE "-fpie")
|
|
|
|
set(CMAKE_SHARED_LIBRARY_C_FLAGS "-fpic") # -pic
|
|
|
|
set(CMAKE_SHARED_LIBRARY_CXX_FLAGS "-fpic") # -pic
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2002-11-08 23:46:08 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
2014-04-11 20:17:46 +04:00
|
|
|
if(CMAKE_SYSTEM MATCHES "OSF1-V")
|
2012-08-13 21:47:32 +04:00
|
|
|
set(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared -Wl,-expect_unresolved,\\*") # -shared
|
|
|
|
if(CMAKE_COMPILER_IS_GNUCXX)
|
|
|
|
set(CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG "-Wl,-rpath,")
|
2012-08-13 21:50:14 +04:00
|
|
|
else()
|
2012-08-13 21:47:32 +04:00
|
|
|
set(CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG "-rpath ")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2012-08-13 21:47:32 +04:00
|
|
|
if(CMAKE_COMPILER_IS_GNUCC)
|
|
|
|
set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-rpath,")
|
2012-08-13 21:50:14 +04:00
|
|
|
else()
|
2012-08-13 21:47:32 +04:00
|
|
|
set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-rpath ")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2012-08-13 21:47:32 +04:00
|
|
|
set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2002-11-08 23:46:08 +03:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
set(CMAKE_MAKE_INCLUDE_FROM_ROOT 1) # include $(CMAKE_BINARY_DIR)/...
|
2004-05-05 18:41:40 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
if(CMAKE_COMPILER_IS_GNUCXX)
|
2012-08-13 21:42:58 +04:00
|
|
|
# include the gcc flags
|
2012-08-13 21:50:14 +04:00
|
|
|
else ()
|
2004-05-05 18:41:40 +04:00
|
|
|
# use default OSF compiler flags
|
2012-08-13 21:47:32 +04:00
|
|
|
set (CMAKE_C_FLAGS_INIT "")
|
|
|
|
set (CMAKE_C_FLAGS_DEBUG_INIT "-g")
|
|
|
|
set (CMAKE_C_FLAGS_MINSIZEREL_INIT "-O2 -DNDEBUG")
|
|
|
|
set (CMAKE_C_FLAGS_RELEASE_INIT "-O2 -DNDEBUG")
|
|
|
|
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 -DNDEBUG")
|
|
|
|
set (CMAKE_CXX_FLAGS_RELEASE_INIT "-O2 -DNDEBUG")
|
|
|
|
set (CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-O2")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2012-08-13 21:47:32 +04:00
|
|
|
include(Platform/UnixPaths)
|