Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8412 for code/trunk/cmake


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.

Location:
code/trunk/cmake
Files:
1 added
2 edited

Legend:

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

    r8351 r8412  
    129129  FIND_PACKAGE(DbgHelp)
    130130  FIND_PACKAGE(DirectX       REQUIRED)
     131  IF(MSVC)
     132    # Check whether we can use Visual Leak Detector
     133    FIND_PACKAGE(VLD QUIET)
     134  ENDIF()
    131135ENDIF()
    132136
  • code/trunk/cmake/tools/TargetUtilities.cmake

    r8409 r8412  
    305305
    306306  # Visual Leak Detector specific stuff (avoids the include)
    307   IF(HAVE_VLD)
    308     TARGET_LINK_LIBRARIES(${_target_name} ${VLD_LIBRARY})
     307  IF(VISUAL_LEAK_DETECTOR_ENABLE)
     308    TARGET_LINK_LIBRARIES(${_target_name} debug ${VLD_LIBRARY})
    309309  ENDIF()
    310310
Note: See TracChangeset for help on using the changeset viewer.