summaryrefslogtreecommitdiff
path: root/indra/cmake/VisualLeakDetector.cmake
diff options
context:
space:
mode:
authorDon Kjer <don@lindenlab.com>2012-10-04 03:12:48 +0000
committerDon Kjer <don@lindenlab.com>2012-10-04 03:12:48 +0000
commitc9ab9590aa1d44ea139b16e7ffcb1461d928bdd5 (patch)
treec735cd065521eb5b2d719f78e1685c090b265ea6 /indra/cmake/VisualLeakDetector.cmake
parent8c0aa31536c447edb6ef4fbee43f99debf593a20 (diff)
Removing server-related cmake cruft. Fixing libGLU warnings on linux.
Diffstat (limited to 'indra/cmake/VisualLeakDetector.cmake')
-rw-r--r--indra/cmake/VisualLeakDetector.cmake15
1 files changed, 6 insertions, 9 deletions
diff --git a/indra/cmake/VisualLeakDetector.cmake b/indra/cmake/VisualLeakDetector.cmake
index d3ba554e46..27e93e28bb 100644
--- a/indra/cmake/VisualLeakDetector.cmake
+++ b/indra/cmake/VisualLeakDetector.cmake
@@ -1,15 +1,12 @@
# -*- cmake -*-
-if (VIEWER)
+set(INCLUDE_VLD_CMAKE OFF CACHE BOOL "Build the Windows viewer with Visual Leak Detector turned on or off")
- set(INCLUDE_VLD_CMAKE OFF CACHE BOOL "Build the Windows viewer with Visual Leak Detector turned on or off")
+if (INCLUDE_VLD_CMAKE)
- if (INCLUDE_VLD_CMAKE)
+ if (WINDOWS)
+ add_definitions(-DINCLUDE_VLD=1)
+ endif (WINDOWS)
- if (WINDOWS)
- add_definitions(-DINCLUDE_VLD=1)
- endif (WINDOWS)
+endif (INCLUDE_VLD_CMAKE)
- endif (INCLUDE_VLD_CMAKE)
-
-endif (VIEWER)