Skip to content

Commit

Permalink
build: don't fail pybind11 search if python is disabled (#4136)
Browse files Browse the repository at this point in the history
Fixes #4135 

Thanks to @OgreTransporter for the suggestion.

Signed-off-by: Larry Gritz <[email protected]>
  • Loading branch information
lgritz committed Feb 1, 2024
1 parent dbab4df commit 2b96738
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cmake/externalpackages.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,9 @@ endif()

# From pythonutils.cmake
find_python()

checked_find_package (pybind11 REQUIRED VERSION_MIN 2.4.2)
if (USE_PYTHON)
checked_find_package (pybind11 REQUIRED VERSION_MIN 2.4.2)
endif ()


###########################################################################
Expand Down

0 comments on commit 2b96738

Please sign in to comment.