summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2013-06-05 11:29:04 -0400
committerJosh Blum <josh@joshknows.com>2013-06-05 11:29:04 -0400
commitaf71fe4953deaa6ae132d92a7645903add88ded9 (patch)
treeefe5a074691d6561f00427e2e18c6a1f6b4ea9cf /cmake
parent81cba98cb1a3adec261aa6b510ee152c3a24bb0d (diff)
gr: added GR_TEST_ENVIRONS to GrTest
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/GrTest.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/Modules/GrTest.cmake b/cmake/Modules/GrTest.cmake
index 4723cca58f..bb045dcbb3 100644
--- a/cmake/Modules/GrTest.cmake
+++ b/cmake/Modules/GrTest.cmake
@@ -30,6 +30,7 @@ set(__INCLUDED_GR_TEST_CMAKE TRUE)
# GR_TEST_TARGET_DEPS - built targets for the library path
# GR_TEST_LIBRARY_DIRS - directories for the library path
# GR_TEST_PYTHON_DIRS - directories for the python path
+# GR_TEST_ENVIRONS - other environment key/value pairs
########################################################################
function(GR_ADD_TEST test_name)
@@ -66,6 +67,7 @@ function(GR_ADD_TEST test_name)
file(TO_NATIVE_PATH "${GR_TEST_PYTHON_DIRS}" pypath) #ok to use on dir list?
set(environs "GR_DONT_LOAD_PREFS=1" "srcdir=${srcdir}")
+ list(APPEND environs ${GR_TEST_ENVIRONS})
#http://www.cmake.org/pipermail/cmake/2009-May/029464.html
#Replaced this add test + set environs code with the shell script generation.