1 IF(CMAKE_COMPILER_IS_GNUCC)
2 SET (CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC") # -pic
3 SET (CMAKE_C_FLAGS_INIT "")
4 SET (CMAKE_C_FLAGS_DEBUG_INIT "-g")
5 SET (CMAKE_C_FLAGS_MINSIZEREL_INIT "-Os -DNDEBUG")
6 SET (CMAKE_C_FLAGS_RELEASE_INIT "-O3 -DNDEBUG")
7 SET (CMAKE_C_FLAGS_RELWITHDEBINFO_INIT "-O2 -g")
8 SET (CMAKE_C_CREATE_PREPROCESSED_SOURCE "<CMAKE_C_COMPILER> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
9 SET (CMAKE_C_CREATE_ASSEMBLY_SOURCE "<CMAKE_C_COMPILER> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>")
11 SET (CMAKE_INCLUDE_SYSTEM_FLAG_C "-isystem ")
13 ENDIF(CMAKE_COMPILER_IS_GNUCC)
15 IF(CMAKE_COMPILER_IS_GNUCXX)
16 SET (CMAKE_SHARED_LIBRARY_CXX_FLAGS "-fPIC") # -pic
17 SET (CMAKE_CXX_FLAGS_INIT "")
18 SET (CMAKE_CXX_FLAGS_DEBUG_INIT "-g")
19 SET (CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-Os -DNDEBUG")
20 SET (CMAKE_CXX_FLAGS_RELEASE_INIT "-O3 -DNDEBUG")
21 SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-O2 -g")
22 SET (CMAKE_CXX_CREATE_PREPROCESSED_SOURCE "<CMAKE_CXX_COMPILER> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
23 SET (CMAKE_CXX_CREATE_ASSEMBLY_SOURCE "<CMAKE_CXX_COMPILER> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>")
25 SET (CMAKE_INCLUDE_SYSTEM_FLAG_CXX "-isystem ")
27 ENDIF(CMAKE_COMPILER_IS_GNUCXX)