From 7c325ef8acc3eaba6a4380790d6757ce1f386d7b Mon Sep 17 00:00:00 2001 From: devw4r <108442943+devw4r@users.noreply.github.com> Date: Sun, 17 Sep 2023 13:07:03 -0600 Subject: [PATCH] Mixed find_package + cmake pr fix submodule.. --- .gitmodules | 2 +- CMakeLists.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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()