Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2260 for code


Ignore:
Timestamp:
Nov 25, 2008, 5:32:58 PM (16 years ago)
Author:
rgrieder
Message:

Added NDEBUG and _DEBUG macros to all builds. This removes all asserts from the release versions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem/CMakeLists.txt

    r2223 r2260  
    3333SET(CMAKE_C_FLAGS   "$ENV{CFLAGS}   -Wall -Wextra -Wno-unused-parameter")
    3434SET(CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} -Wall -Wextra -Wno-unused-parameter")
    35 SET(CMAKE_C_FLAGS_DEBUG            "-g -ggdb")
    36 SET(CMAKE_CXX_FLAGS_DEBUG          "-g -ggdb")
    37 SET(CMAKE_C_FLAGS_RELEASE          "-O3")
    38 SET(CMAKE_CXX_FLAGS_RELEASE        "-O3")
    39 SET(CMAKE_C_FLAGS_RELWITHDEBINFO   "-O2 -g -ggdb")
    40 SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g -ggdb")
    41 SET(CMAKE_C_FLAGS_MINSIZEREL       "-Os")
    42 SET(CMAKE_CXX_FLAGS_MINSIZEREL     "-Os")
     35SET(CMAKE_C_FLAGS_DEBUG            "-g -D_DEBUG -ggdb")
     36SET(CMAKE_CXX_FLAGS_DEBUG          "-g -D_DEBUG -ggdb")
     37SET(CMAKE_C_FLAGS_RELEASE          "-O3 -DNDEBUG")
     38SET(CMAKE_CXX_FLAGS_RELEASE        "-O3 -DNDEBUG")
     39SET(CMAKE_C_FLAGS_RELWITHDEBINFO   "-O2 -DNDEBUG -g -ggdb")
     40SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -DNDEBUG -g -ggdb")
     41SET(CMAKE_C_FLAGS_MINSIZEREL       "-Os -DNDEBUG")
     42SET(CMAKE_CXX_FLAGS_MINSIZEREL     "-Os -DNDEBUG")
    4343
    4444SET(CMAKE_LD_FLAGS "$ENV{LDFLAGS}")
Note: See TracChangeset for help on using the changeset viewer.