Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
devw4r committed Sep 17, 2023
1 parent 8a3f323 commit 2596d6e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ option(NAMIGATOR_BUILD_C_API "Build the C API." TRUE)
option(NAMIGATOR_BUILD_EXECUTABLES "Build the MapViewer executable. Windows only." TRUE)

if(NAMIGATOR_BUILD_PYTHON)
set(PYBIND11_FINDPYTHON ON)
if(${CMAKE_VERSION} VERSION_GREATER "3.12.0")
set(PYBIND11_FINDPYTHON ON)
endif()
add_subdirectory(pybind11)
else()
message(WARNING "Python bindings for ${CMAKE_PROJECT_NAME} will not be compiled")
Expand Down

0 comments on commit 2596d6e

Please sign in to comment.