You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
363 B
12 lines
363 B
4 years ago
|
if(PYTHON_EXECUTABLE)
|
||
|
execute_process(
|
||
|
COMMAND ${PYTHON_EXECUTABLE} "${RunCMake_SOURCE_DIR}/trace-json-v1-check.py" "${RunCMake_BINARY_DIR}/json-v1.trace"
|
||
|
RESULT_VARIABLE result
|
||
|
OUTPUT_VARIABLE output
|
||
|
ERROR_VARIABLE output
|
||
|
)
|
||
|
if(NOT result EQUAL 0)
|
||
|
set(RunCMake_TEST_FAILED "JSON trace validation failed:\n${output}")
|
||
|
endif()
|
||
|
endif()
|