Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 7, 2011, 12:06:56 AM (13 years ago)
Author:
rgrieder
Message:

MSVC specific:
Sorted out Visual Leak Detector handling (it's now treated like a real library, not as a hack).
Also, the vld.h include is gone and with it windows.h.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/OrxonoxConfig.cmake

    r8409 r8412  
    8080ADD_COMPILER_FLAGS("-DCMAKE_MinSizeRel_BUILD"     MinSizeRel)
    8181
    82 IF(MSVC)
    83   # Check whether we can use Visual Leak Detector
    84   FIND_FILE(VLD_DLL vld_x86.dll)
    85   IF(VLD_DLL)
    86     SET(HAVE_VLD TRUE)
    87     OPTION(VISUAL_LEAK_DETECTOR_ENABLE "Memory leak detector" off)
    88     # Make sure the value is "on" or "off" for vld.ini
    89     IF(VISUAL_LEAK_DETECTOR_ENABLE)
    90       SET(VISUAL_LEAK_DETECTOR_ENABLE on)
    91     ELSE()
    92       SET(VISUAL_LEAK_DETECTOR_ENABLE off)
    93     ENDIF()
    94     SET(VLD_LIBRARY vld.lib)
    95     # Force symbol reference
    96     # The alternative would be to include vld.h everywhere (includes windows.h)
    97     ADD_LINKER_FLAGS("-INCLUDE:__imp_?vld@@3VVisualLeakDetector@@A" Debug)
    98   ENDIF()
    99   MARK_AS_ADVANCED(VLD_DLL)
    100 ENDIF()
    101 
    10282############## Configured Headers ###############
    10383
Note: See TracChangeset for help on using the changeset viewer.