Skip to content

Commit c377703

Browse files
committed
Use pybind11's new mode to work around CMP0148 related dev warning.
1 parent 8816486 commit c377703

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ FetchContent_Declare(
2424
GIT_REPOSITORY https://github.com/pybind/pybind11.git
2525
GIT_TAG v2.11.1
2626
)
27+
# TODO: Revisit once we get a new pybind11 release
28+
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.27)
29+
set(PYBIND11_FINDPYTHON ON)
30+
endif()
2731
FetchContent_MakeAvailable(pybind11-src)
2832
endif()
2933

0 commit comments

Comments
 (0)