Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 1, 2011, 3:09:28 AM (13 years ago)
Author:
rgrieder
Message:

Added CMake configuration type "RelForDevs", which replaces "RelWithDebInfo". That latter is now equivalent to "Release", but with symbols.
Also, I removed debug symbol generation for Release and MinSizeRel when compiling with MSVC.

The new configuration should be used as standard Release mode when developing. The other three release configurations are for actual installed binaries (and behave again as the name suggests).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/cmake/CompilerConfigGCC.cmake

    r8364 r8368  
    5252SET_COMPILER_FLAGS("    -g -ggdb -D_DEBUG" Debug          CACHE)
    5353SET_COMPILER_FLAGS("             -DNDEBUG" ReleaseAll     CACHE)
     54ADD_COMPILER_FLAGS("-O2 -g -ggdb"          RelForDevs     CACHE)
     55ADD_COMPILER_FLAGS("-O3 -g -ggdb"          RelWithDebInfo CACHE)
    5456ADD_COMPILER_FLAGS("-O3"                   Release        CACHE)
    55 ADD_COMPILER_FLAGS("-O2 -g -ggdb"          RelWithDebInfo CACHE)
    5657ADD_COMPILER_FLAGS("-Os"                   MinSizeRel     CACHE)
    5758
     
    112113# Add compiler and linker flags for MinGW
    113114IF (MINGW)
    114   ADD_COMPILER_FLAGS("-gstabs+" Debug          CACHE)
    115   ADD_COMPILER_FLAGS("-gstabs+" RelWithDebInfo CACHE)
     115  ADD_COMPILER_FLAGS("-gstabs+" Debug RelForDevs RelWithDebInfo CACHE)
    116116
    117117  ADD_LINKER_FLAGS("-enable-auto-import" CACHE)
Note: See TracChangeset for help on using the changeset viewer.