summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/gcc.cmake
blob: c03b282175666f250c32983c0a3b4f948227da4c (plain)
1
2
3
4
5
6
7
8
9
10
11
IF(NOT CMAKE_CXX_FLAGS)
  SET (CMAKE_CXX_FLAGS "")
  SET (CMAKE_CXX_FLAGS_DEBUG "-g")
  SET (CMAKE_CXX_FLAGS_MINSIZEREL "-O3")
  SET (CMAKE_CXX_FLAGS_RELEASE "-O2")
  SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g")
ENDIF(NOT CMAKE_CXX_FLAGS)

IF(NOT CMAKE_C_FLAGS)
  SET (CMAKE_C_FLAGS "")
ENDIF(NOT CMAKE_C_FLAGS)