diff --git a/CMakeLists.txt b/CMakeLists.txt index 0501ccdf..63e6e060 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -65,7 +65,7 @@ if (BUILD_PYTHON_BINDINGS) # Include the vendored FindPython3 resources list(PREPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules") - find_package(Python3 COMPONENTS Interpreter Development.Module) + find_package(Python3 REQUIRED COMPONENTS Interpreter Development.Module) find_package(pybind11 REQUIRED) add_subdirectory(python)