Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 30, 2011, 4:36:04 AM (13 years ago)
Author:
rgrieder
Message:

To avoid further confusion, I linked ORXONOX_RELEASE to the 'Release' and 'MinSizeRel' configurations. The variable is therefore not anymore available in CMake.
That means defining what these configurations actually mean in the context of Orxonox:

Debug: No optimisations and additional debug information. NOT distributable.
RelWithDebInfo: Optimisations enabled, but also generates debug information. Should be the default mode for development.
Release: With optimisations, but no debug symbols. Use this configuration to make a release binary.
MinSizeRel: Like Release, but optimised for size instead of speed. Not really useful for us.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/OrxonoxConfig.h.in

    r8351 r8363  
    143143 * Apple Settings
    144144 *-------------------------------*/
    145 
    146 
    147 /*---------------------------------
    148  * Options
    149  *-------------------------------*/
    150 #cmakedefine ORXONOX_RELEASE  ///< Enables expensive (build time) optimisations and disables certain features
    151145
    152146
     
    185179*/
    186180
     181// Configurations Release and MinSizeRel are designed for redistribution while
     182// RelWithDebInfo is more for development
     183// ORXONOX_RELEASE simplifies this a little bit
     184#if defined(CMAKE_Release_BUILD) || defined(CMAKE_MinSizeRel_BUILD)
     185#  define ORXONOX_RELEASE
     186#endif
     187
    187188// Include memory leak detector if available and not building actual release
    188189#cmakedefine HAVE_VLD
    189 #if defined(HAVE_VLD) && !defined(ORXONOX_RELEASE)
     190#if defined(HAVE_VLD) && !defined(NDEBUG)
    190191typedef uint32_t UINT32;
    191192typedef wchar_t WCHAR;
Note: See TracChangeset for help on using the changeset viewer.