CMakeLists.txt
changeset 9211 6235925d0fa1
parent 9208 acb2492288e5
child 9212 1d4e1469940b
equal deleted inserted replaced
9210:31fedd5ef878 9211:6235925d0fa1
    77 #set default flags values for all projects (unless MINIMAL_FLAGS is true)
    77 #set default flags values for all projects (unless MINIMAL_FLAGS is true)
    78 if(NOT ${MINIMAL_FLAGS})
    78 if(NOT ${MINIMAL_FLAGS})
    79     set(CMAKE_C_FLAGS "-pipe ${CMAKE_C_FLAGS}")
    79     set(CMAKE_C_FLAGS "-pipe ${CMAKE_C_FLAGS}")
    80     set(CMAKE_C_FLAGS_RELEASE "-w -Os -fomit-frame-pointer ${CMAKE_C_FLAGS_RELEASE}")
    80     set(CMAKE_C_FLAGS_RELEASE "-w -Os -fomit-frame-pointer ${CMAKE_C_FLAGS_RELEASE}")
    81     set(CMAKE_C_FLAGS_DEBUG "-Wall -O0 -g -DDEBUG ${CMAKE_C_FLAGS_DEBUG}")
    81     set(CMAKE_C_FLAGS_DEBUG "-Wall -O0 -g -DDEBUG ${CMAKE_C_FLAGS_DEBUG}")
    82     set(CMAKE_CXX_FLAGS ${CMAKE_C_FLAGS})
    82     set(CMAKE_CXX_FLAGS "-pipe ${CMAKE_CXX_FLAGS}")
    83     set(CMAKE_CXX_FLAGS_RELEASE ${CMAKE_C_FLAGS_RELEASE})
    83     set(CMAKE_CXX_FLAGS_RELEASE "-w -Os -fomit-frame-pointer ${CMAKE_CXX_FLAGS_RELEASE}")
    84     set(CMAKE_CXX_FLAGS_DEBUG ${CMAKE_C_FLAGS_DEBUG})
    84     set(CMAKE_CXX_FLAGS_DEBUG "-Wall -O0 -g -DDEBUG ${CMAKE_CXX_FLAGS_DEBUG}")
    85 else()
    85 else()
    86     #CMake adds a lot of additional configuration flags, so let's clear them up
    86     #CMake adds a lot of additional configuration flags, so let's clear them up
    87     set(CMAKE_C_FLAGS_RELEASE "")
    87     set(CMAKE_C_FLAGS_RELEASE "")
    88     set(CMAKE_C_FLAGS_DEBUG "-Wall -DDEBUG")
    88     set(CMAKE_C_FLAGS_DEBUG "-Wall -DDEBUG")
    89     set(CMAKE_CXX_FLAGS_RELEASE "")
    89     set(CMAKE_CXX_FLAGS_RELEASE "")