summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/gcc.cmake
blob: 55612bdf0c04814e614c9276dd5c5a9a1a3de308 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
SET (CMAKE_CXX_FLAGS "" CACHE STRING
     "Flags used by the compiler during all build types.")

SET (CMAKE_CXX_FLAGS_DEBUG "-g" CACHE STRING
     "Flags used by the compiler during debug builds.")

SET (CMAKE_CXX_FLAGS_MINSIZEREL "-O3" CACHE STRING
     "Flags used by the compiler during release minsize builds.")

SET (CMAKE_CXX_FLAGS_RELEASE "-O2" CACHE STRING
     "Flags used by the compiler during release builds (/MD /Ob1 /Oi /Ot /Oy /Gs will produce slightly less optimized but smaller files).")

SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g" CACHE STRING
     "Flags used by the compiler during Release with Debug Info builds.")


SET (CMAKE_C_FLAGS "" CACHE STRING
     "Flags for C compiler.")