LLTestCommand.cmake
上传用户:king477883
上传日期:2021-03-01
资源大小:9553k
文件大小:1k
- 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)