summaryrefslogtreecommitdiff
path: root/indra/cmake/VisualLeakDetector.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'indra/cmake/VisualLeakDetector.cmake')
-rwxr-xr-xindra/cmake/VisualLeakDetector.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/cmake/VisualLeakDetector.cmake b/indra/cmake/VisualLeakDetector.cmake
new file mode 100755
index 0000000000..6a20148b47
--- /dev/null
+++ b/indra/cmake/VisualLeakDetector.cmake
@@ -0,0 +1,12 @@
+# -*- cmake -*-
+
+ 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)
+