summaryrefslogtreecommitdiff
path: root/indra/cmake
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2012-11-19 17:40:43 -0600
committerDave Parks <davep@lindenlab.com>2012-11-19 17:40:43 -0600
commit7491fbd677148e38898bb1a39d00ffd15e803ed4 (patch)
tree44ab8afa3fbfbd35805dac491bb2174c501aee0b /indra/cmake
parenta1d60fc2193a70044d9cc689cffcadbf40743336 (diff)
MAINT-1841 Use NVAPI to force NVIDIA GPU power management mode to prefer max performance
Reviewed by Simon.
Diffstat (limited to 'indra/cmake')
-rw-r--r--indra/cmake/NVAPI.cmake17
1 files changed, 17 insertions, 0 deletions
diff --git a/indra/cmake/NVAPI.cmake b/indra/cmake/NVAPI.cmake
new file mode 100644
index 0000000000..78989c408f
--- /dev/null
+++ b/indra/cmake/NVAPI.cmake
@@ -0,0 +1,17 @@
+# -*- cmake -*-
+include(Prebuilt)
+
+set(NVAPI ON CACHE BOOL "Use NVAPI.")
+
+if (NVAPI)
+ use_prebuilt_binary(nvapi)
+
+ if (WINDOWS)
+ set(NVAPI_LIBRARY nvapi)
+ else (WINDOWS)
+ set(NVAPI_LIBRARY "")
+ endif (WINDOWS)
+else (NVAPI)
+ set(NVAPI_LIBRARY "")
+endif (NVAPI)
+