diff --git a/CMakeLists.txt b/CMakeLists.txt index 86cdc81b1f8..3b715dcab51 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,7 +16,7 @@ if(${CMAKE_VERSION} VERSION_LESS 3.12) set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${PROJECT_SOURCE_DIR}/tools/cmake3.12") endif() -find_package(Python3 REQUIRED) +find_package(Python3 COMPONENTS Interpreter REQUIRED) set(PYTHON_EXECUTABLE ${Python3_EXECUTABLE}) find_package(Git) diff --git a/tools/cmake/open62541Config.cmake.in b/tools/cmake/open62541Config.cmake.in index 664ada54fea..7c168d19d10 100644 --- a/tools/cmake/open62541Config.cmake.in +++ b/tools/cmake/open62541Config.cmake.in @@ -6,7 +6,7 @@ set (open62541_TOOLS_DIR @PACKAGE_open62541_install_tools_dir@ CACHE PATH "Path set (UA_NODESET_DIR @PACKAGE_open62541_install_nodeset_dir@ CACHE PATH "Path to the directory that contains the OPC UA schema repository") include(CMakeFindDependencyMacro) -find_dependency(PythonInterp 3 REQUIRED) +find_dependency(Python3 COMPONENTS Interpreter REQUIRED) include("${CMAKE_CURRENT_LIST_DIR}/open62541Macros.cmake")