CMakeLists.txt
changeset 9212 1d4e1469940b
parent 9211 6235925d0fa1
child 9213 e3d46d0bc7d0
equal deleted inserted replaced
9211:6235925d0fa1 9212:1d4e1469940b
    76 
    76 
    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 ${CMAKE_C_FLAGS_DEBUG}")
    82     set(CMAKE_CXX_FLAGS "-pipe ${CMAKE_CXX_FLAGS}")
    82     set(CMAKE_CXX_FLAGS "-pipe ${CMAKE_CXX_FLAGS}")
    83     set(CMAKE_CXX_FLAGS_RELEASE "-w -Os -fomit-frame-pointer ${CMAKE_CXX_FLAGS_RELEASE}")
    83     set(CMAKE_CXX_FLAGS_RELEASE "-w -Os -fomit-frame-pointer ${CMAKE_CXX_FLAGS_RELEASE}")
    84     set(CMAKE_CXX_FLAGS_DEBUG "-Wall -O0 -g -DDEBUG ${CMAKE_CXX_FLAGS_DEBUG}")
    84     set(CMAKE_CXX_FLAGS_DEBUG "-Wall -O0 -g ${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")
    89     set(CMAKE_CXX_FLAGS_RELEASE "")
    89     set(CMAKE_CXX_FLAGS_RELEASE "")
    90     set(CMAKE_CXX_FLAGS_DEBUG "-Wall -DDEBUG")
    90     set(CMAKE_CXX_FLAGS_DEBUG "-Wall")
    91 endif()
    91 endif()
    92 
    92 
    93 #parse additional parameters
    93 #parse additional parameters
    94 if(FPFLAGS OR GHFLAGS)
    94 if(FPFLAGS OR GHFLAGS)
    95     if(CMAKE_VERSION VERSION_GREATER "2.6")
    95     if(CMAKE_VERSION VERSION_GREATER "2.6")