Commit 404b94ef authored by AlQuemist's avatar AlQuemist Committed by Wuttke, Joachim
Browse files

CMakeLists: Correct the name of the Python-executable variable

parent 48d9da64
......@@ -206,7 +206,7 @@ if(OHKL_PYTHON AND NOT MSVC AND BUILD_TESTING)
list(APPEND allsources ${sources})
endforeach()
add_test(NAME "CodeLineLength"
COMMAND ${PYTHON_EXECUTABLE}
COMMAND ${Python3_EXECUTABLE}
${CMAKE_SOURCE_DIR}/devtools/check-line-length.py 200 ${allsources})
endif()
......
......@@ -4,7 +4,7 @@ file(GLOB python_tests *.py)
foreach(python_script ${python_tests})
get_filename_component(base_name ${python_script} NAME)
add_test(NAME ${base_name} COMMAND ${PYTHON_EXECUTABLE} ${python_script}
add_test(NAME ${base_name} COMMAND ${Python3_EXECUTABLE} ${python_script}
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/test/data)
set_tests_properties(${base_name} PROPERTIES
ENVIRONMENT "PYTHONPATH=${CMAKE_BINARY_DIR}/swig")
......
......@@ -4,7 +4,7 @@ if (OHKL_FULL_WORKFLOW_TEST)
file(GLOB python_tests *.py)
foreach(python_script ${python_tests})
get_filename_component(base_name ${python_script} NAME)
add_test(NAME ${base_name} COMMAND ${PYTHON_EXECUTABLE} ${python_script}
add_test(NAME ${base_name} COMMAND ${Python3_EXECUTABLE} ${python_script}
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/test/data)
set_tests_properties(${base_name} PROPERTIES
ENVIRONMENT "PYTHONPATH=${CMAKE_BINARY_DIR}/swig"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment