Skip to content

Commit e478238

Browse files
FindPython is 3.12+ -_-
1 parent 3a2150c commit e478238

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

regression/validate-trace-xml-schema/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# The Schema tests require a JDK because we use the
22
# Java standard libraries builtin schema validation functionality
33
find_package(Java COMPONENTS Development)
4-
find_package(Python3 COMPONENTS Interpreter)
5-
if(${Python3_FOUND} AND ${Python3_VERSION} VERSION_GREATER 3.5
4+
find_package(PythonInterp 3.5)
5+
if(${PYTHONINTERP_FOUND}
66
AND ${Java_FOUND} AND ${Java_VERSION_MAJOR} VERSION_GREATER 8)
77
add_test(NAME validate-trace-xml-schema
8-
COMMAND python3 check.py $<TARGET_FILE:cbmc>
8+
COMMAND ${PYTHON_EXECUTABLE} check.py $<TARGET_FILE:cbmc>
99
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR})
1010
set_tests_properties(validate-trace-xml-schema
1111
PROPERTIES

0 commit comments

Comments
 (0)