We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
add_subdirectory()
1 parent fb77795 commit 6667b3eCopy full SHA for 6667b3e
CMakeLists.txt
@@ -45,9 +45,16 @@ else()
45
find_package(xtensor ${xtensor_REQUIRED_VERSION} REQUIRED)
46
message(STATUS "Found xtensor: ${xtensor_INCLUDE_DIRS}/xtensor")
47
endif()
48
+
49
+# Currently no required version for pybind11
50
+if(TARGET pybind11)
51
+ # pybind11 has a variable that indicates its version already, so use that
52
+ message(STATUS "Found pybind11 v${pybind11_VERSION}")
53
+else()
54
+ find_package(pybind11 REQUIRED)
55
+ message(STATUS "Found pybind11: ${pybind11_INCLUDE_DIRS}/pybind11")
56
+endif()
57
-find_package(pybind11 REQUIRED)
-message(STATUS "Found pybind11: ${pybind11_INCLUDE_DIRS}/pybind11")
58
find_package(NumPy REQUIRED)
59
message(STATUS "Found numpy: ${NUMPY_INCLUDE_DIRS}")
60
0 commit comments