diff --git a/.gitmodules b/.gitmodules index 5c679a2..f126dd8 100644 --- a/.gitmodules +++ b/.gitmodules @@ -7,4 +7,4 @@ [submodule "pybind11"] path = pybind11 url = https://github.com/henryiii/pybind11.git - branch = cmakemodule + branch = cmakemodule diff --git a/CMakeLists.txt b/CMakeLists.txt index 54de21f..7a26306 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,6 +29,7 @@ option(NAMIGATOR_BUILD_EXECUTABLES "Build the MapViewer executable. Windows only if(NAMIGATOR_BUILD_PYTHON) if(${CMAKE_VERSION} VERSION_GREATER "3.12.0") set(PYBIND11_FINDPYTHON ON) + find_package(Python3 REQUIRED COMPONENTS Interpreter Development.Module) endif() add_subdirectory(pybind11) else()