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/tools/FlagUtilities.cmake

    r7163 r8368  
    2222 #  Description:
    2323 #    Sets the compiler/linker flags. After the flags you can specify more args:
    24  #    Release, Debug, RelWithDebInfo, MinSizeRel: Build configs (inclusive)
     24 #    Release, Debug, RelWithDebInfo, MinSizeRel, RelForDevs: Build configs
    2525 #    ReleaseAll: Sets the flags of all three release builds
    2626 #    CACHE: Values are witten with SET_CACHE_ADVANCED
     
    3636 #    REMOVE_COMPILER_FLAGS("/Gm "asdf" -q"test -foo" CXX ReleaseAll NOT UNIX)
    3737 #    This will only remove the CXX (C++) flags on a non Unix system for the
    38  #    Release, RelWithDebInfo and MinSizeRel configurations. The macros should
    39  #    be able to cope with "test -foo" as string argument for a flag.
     38 #    Release, RelWithDebInfo, MinSizeRel, RelForDevs configurations. The macros
     39 #    should be able to cope with "test -foo" as string argument for a flag.
    4040 #
    4141
     
    8989    IF(_arg MATCHES "${_key_regex}")
    9090      LIST(APPEND _langs "${_arg}")
    91     ELSEIF(   _arg MATCHES "^(Debug|Release|MinSizeRel|RelWithDebInfo)$"
    92            OR _arg MATCHES "^(DEBUG|RELEASE|MINSIZEREL|RELWITHDEBINFO)$")
     91    ELSEIF(   _arg MATCHES "^(Debug|Release|MinSizeRel|RelWithDebInfo|RelForDevs)$"
     92           OR _arg MATCHES "^(DEBUG|RELEASE|MINSIZEREL|RELWITHDEBINFO|RelForDevs)$")
    9393      STRING(TOUPPER "${_arg}" _upper_arg)
    9494      LIST(APPEND _build_types ${_upper_arg})
    9595    ELSEIF(_arg STREQUAL "ReleaseAll")
    96       LIST(APPEND _build_types RELEASE MINSIZEREL RELWITHDEBINFO)
     96      LIST(APPEND _build_types RELEASE MINSIZEREL RELWITHDEBINFO RELFORDEVS)
    9797    ELSEIF(_arg STREQUAL "CACHE")
    9898      SET(_write_to_cache TRUE)
Note: See TracChangeset for help on using the changeset viewer.