diff --git a/bindings/c/CMakeLists.txt b/bindings/c/CMakeLists.txt index 98341c08be..3851398e44 100644 --- a/bindings/c/CMakeLists.txt +++ b/bindings/c/CMakeLists.txt @@ -16,7 +16,7 @@ elseif(WIN32) endif() add_custom_command(OUTPUT ${asm_file} ${CMAKE_CURRENT_BINARY_DIR}/fdb_c_function_pointers.g.h - COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/generate_asm.py ${platform} + COMMAND $ ${CMAKE_CURRENT_SOURCE_DIR}/generate_asm.py ${platform} ${CMAKE_CURRENT_SOURCE_DIR}/fdb_c.cpp ${asm_file} ${CMAKE_CURRENT_BINARY_DIR}/fdb_c_function_pointers.g.h diff --git a/cmake/AddFdbTest.cmake b/cmake/AddFdbTest.cmake index 36b6c6accb..7a11008d4e 100644 --- a/cmake/AddFdbTest.cmake +++ b/cmake/AddFdbTest.cmake @@ -101,7 +101,7 @@ function(add_fdb_test) endif() list(TRANSFORM ADD_FDB_TEST_TEST_FILES PREPEND "${CMAKE_CURRENT_SOURCE_DIR}/") add_test(NAME ${test_name} - COMMAND ${PYTHON_EXECUTABLE} ${TestRunner} + COMMAND $ ${TestRunner} -n ${test_name} -b ${PROJECT_BINARY_DIR} -t ${test_type} diff --git a/cmake/FDBComponents.cmake b/cmake/FDBComponents.cmake index f219829394..81c2f59ee9 100644 --- a/cmake/FDBComponents.cmake +++ b/cmake/FDBComponents.cmake @@ -41,6 +41,7 @@ find_package(Python COMPONENTS Interpreter) if(Python_Interpreter_FOUND) set(WITH_PYTHON ON) else() + message(FATAL_ERROR "Could not found a suitable python interpreter") set(WITH_PYTHON OFF) endif()