Skip to content

Commit

Permalink
Use pybind11's new mode to work around CMP0148 related dev warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
AmineKhaldi committed Jan 24, 2024
1 parent 8816486 commit c377703
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ FetchContent_Declare(
GIT_REPOSITORY https://github.com/pybind/pybind11.git
GIT_TAG v2.11.1
)
# TODO: Revisit once we get a new pybind11 release
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.27)
set(PYBIND11_FINDPYTHON ON)
endif()
FetchContent_MakeAvailable(pybind11-src)
endif()

Expand Down

0 comments on commit c377703

Please sign in to comment.