summaryrefslogtreecommitdiff
path: root/indra/cmake/LLTestCommand.cmake
diff options
context:
space:
mode:
authorSteve Bennetts <steve@lindenlab.com>2009-10-23 12:15:22 -0700
committerSteve Bennetts <steve@lindenlab.com>2009-10-23 12:15:22 -0700
commit127b428863707c882fbf4d30699321b8a2365644 (patch)
tree728c98bd177635891f0646ccabcf86b70341d4a0 /indra/cmake/LLTestCommand.cmake
parent0220106ecdecd323854522a5bc3fd6455c60fdfc (diff)
parent2438a9168b117dcabf5e5819f93e08a874735a26 (diff)
merge
Diffstat (limited to 'indra/cmake/LLTestCommand.cmake')
-rw-r--r--indra/cmake/LLTestCommand.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/cmake/LLTestCommand.cmake b/indra/cmake/LLTestCommand.cmake
new file mode 100644
index 0000000000..fae5640493
--- /dev/null
+++ b/indra/cmake/LLTestCommand.cmake
@@ -0,0 +1,13 @@
+MACRO(LL_TEST_COMMAND LD_LIBRARY_PATH)
+ # nat wonders how Kitware can use the term 'function' for a construct that
+ # cannot return a value. And yet, variables you set inside a FUNCTION are
+ # local. Try a MACRO instead.
+ SET(LL_TEST_COMMAND_value
+ ${PYTHON_EXECUTABLE}
+ "${CMAKE_SOURCE_DIR}/cmake/run_build_test.py")
+ IF(LD_LIBRARY_PATH)
+ LIST(APPEND LL_TEST_COMMAND_value "-l${LD_LIBRARY_PATH}")
+ ENDIF(LD_LIBRARY_PATH)
+ LIST(APPEND LL_TEST_COMMAND_value ${ARGN})
+##MESSAGE(STATUS "Will run: ${LL_TEST_COMMAND_value}")
+ENDMACRO(LL_TEST_COMMAND)