2 SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared -rdata_shared")
3 SET(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-shared -rdata_shared")
4 SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-rpath,") # -rpath
5 SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP "") # : or empty
6 IF(NOT CMAKE_COMPILER_IS_GNUCXX)
7 SET(CMAKE_CXX_CREATE_STATIC_LIBRARY
8 "<CMAKE_CXX_COMPILER> -ar -o <TARGET> <OBJECTS>")
9 SET (CMAKE_CXX_FLAGS_INIT "")
10 SET (CMAKE_CXX_FLAGS_DEBUG_INIT "-g")
11 SET (CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-O3 -DNDEBUG")
12 SET (CMAKE_CXX_FLAGS_RELEASE_INIT "-O2 -DNDEBUG")
13 SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-O2")
14 SET (CMAKE_C_FLAGS_INIT "")
15 ENDIF(NOT CMAKE_COMPILER_IS_GNUCXX)
16 # set flags for gcc support
17 INCLUDE(Platform/UnixPaths)
19 IF(NOT CMAKE_COMPILER_IS_GNUCC)
20 SET (CMAKE_C_CREATE_PREPROCESSED_SOURCE "<CMAKE_C_COMPILER> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
21 SET (CMAKE_C_CREATE_ASSEMBLY_SOURCE
22 "<CMAKE_C_COMPILER> <FLAGS> -S <SOURCE>"
23 "mv `basename \"<SOURCE>\" | sed 's/\\.[^./]*$$//'`.s <ASSEMBLY_SOURCE>"
25 ENDIF(NOT CMAKE_COMPILER_IS_GNUCC)
27 IF(NOT CMAKE_COMPILER_IS_GNUCXX)
28 SET (CMAKE_CXX_CREATE_PREPROCESSED_SOURCE "<CMAKE_CXX_COMPILER> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
29 SET (CMAKE_CXX_CREATE_ASSEMBLY_SOURCE
30 "<CMAKE_CXX_COMPILER> <FLAGS> -S <SOURCE>"
31 "mv `basename \"<SOURCE>\" | sed 's/\\.[^./]*$$//'`.s <ASSEMBLY_SOURCE>"
33 ENDIF(NOT CMAKE_COMPILER_IS_GNUCXX)