We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4a64ce4 + 2a9ef1d commit f024adbCopy full SHA for f024adb
1 file changed
CMakeLists.txt
@@ -47,7 +47,7 @@ else()
47
endif()
48
49
# Currently no required version for pybind11
50
-if(TARGET pybind11)
+if(TARGET pybind11 OR TARGET pybind11::headers)
51
# pybind11 has a variable that indicates its version already, so use that
52
message(STATUS "Found pybind11 v${pybind11_VERSION}")
53
else()
0 commit comments