Changeset 8409
- Timestamp:
- May 6, 2011, 3:37:01 AM (14 years ago)
- Location:
- code/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/cmake/tools/TargetUtilities.cmake
r8405 r8409 304 304 ENDIF() 305 305 306 # Visual Leak Detector specific stuff (avoids the include) 307 IF(HAVE_VLD) 308 TARGET_LINK_LIBRARIES(${_target_name} ${VLD_LIBRARY}) 309 ENDIF() 310 306 311 # RPATH settings for the installation 307 312 IF("${_target_type}" STREQUAL "LIBRARY") -
code/trunk/src/OrxonoxConfig.cmake
r8368 r8409 92 92 SET(VISUAL_LEAK_DETECTOR_ENABLE off) 93 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) 94 98 ENDIF() 95 99 MARK_AS_ADVANCED(VLD_DLL) -
code/trunk/src/OrxonoxConfig.h.in
r8368 r8409 185 185 || defined(CMAKE_RelWithDebInfo_BUILD) 186 186 # define ORXONOX_RELEASE 187 #endif188 189 // Include memory leak detector if available and not building actual release190 #cmakedefine HAVE_VLD191 #if defined(HAVE_VLD) && !defined(NDEBUG)192 typedef uint32_t UINT32;193 typedef wchar_t WCHAR;194 struct HINSTANCE__;195 typedef struct HINSTANCE__* HINSTANCE;196 typedef HINSTANCE HMODULE;197 # ifndef NULL198 # define NULL 0199 # endif200 # include <vld.h>201 187 #endif 202 188
Note: See TracChangeset
for help on using the changeset viewer.