PageRenderTime 7ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/cmake/LLTestCommand.cmake

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 17 lines | 11 code | 0 blank | 6 comment | 0 complexity | 59640356577b0579d124c68c41ef6ace MD5 | raw file
 1include(Python)
 2MACRO(LL_TEST_COMMAND OUTVAR LD_LIBRARY_PATH)
 3  # nat wonders how Kitware can use the term 'function' for a construct that
 4  # cannot return a value. And yet, variables you set inside a FUNCTION are
 5  # local. Try a MACRO instead.
 6  SET(value
 7    ${PYTHON_EXECUTABLE}
 8    "${CMAKE_SOURCE_DIR}/cmake/run_build_test.py")
 9  FOREACH(dir ${LD_LIBRARY_PATH})
10    LIST(APPEND value "-l${dir}")
11  ENDFOREACH(dir)
12  LIST(APPEND value ${ARGN})
13  SET(${OUTVAR} ${value})
14##IF(LL_TEST_VERBOSE)
15##  MESSAGE(STATUS "LL_TEST_COMMAND: ${value}")
16##ENDIF(LL_TEST_VERBOSE)
17ENDMACRO(LL_TEST_COMMAND)