Skip to content

Commit

Permalink
Mixed find_package + cmake pr fix submodule..
Browse files Browse the repository at this point in the history
  • Loading branch information
devw4r committed Sep 17, 2023
1 parent 2156ef9 commit 7c325ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
[submodule "pybind11"]
path = pybind11
url = https://github.com/henryiii/pybind11.git
branch = cmakemodule
branch = cmakemodule
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7c325ef

Please sign in to comment.