summaryrefslogtreecommitdiff
path: root/indra/cmake
diff options
context:
space:
mode:
authorcallum <none@none>2012-02-10 14:02:09 -0800
committercallum <none@none>2012-02-10 14:02:09 -0800
commit6c3d44449032e386c2b4163c3635f1fe6934e5d7 (patch)
treed44ea235c3a3f78a2e232d9aea4892bdc6026954 /indra/cmake
parented137f40d137dd78d0ec916ca91814cf5534a9f6 (diff)
EXP-1889 FIX As a Second Life viewer developer, I would like a tool that helps me find memory leaks.
Diffstat (limited to 'indra/cmake')
-rw-r--r--indra/cmake/VisualLeakDetector.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/indra/cmake/VisualLeakDetector.cmake b/indra/cmake/VisualLeakDetector.cmake
new file mode 100644
index 0000000000..d3ba554e46
--- /dev/null
+++ b/indra/cmake/VisualLeakDetector.cmake
@@ -0,0 +1,15 @@
+# -*- cmake -*-
+
+if (VIEWER)
+
+ set(INCLUDE_VLD_CMAKE OFF CACHE BOOL "Build the Windows viewer with Visual Leak Detector turned on or off")
+
+ if (INCLUDE_VLD_CMAKE)
+
+ if (WINDOWS)
+ add_definitions(-DINCLUDE_VLD=1)
+ endif (WINDOWS)
+
+ endif (INCLUDE_VLD_CMAKE)
+
+endif (VIEWER)