microsoft/onnxruntime-extensions
Publicmirrored fromhttps://github.com/microsoft/onnxruntime-extensionsAvailable
cmake/externals/pybind11.cmake
15lines · modecode
| 1 | FetchContent_Declare( |
| 2 | pybind11 |
| 3 | GIT_REPOSITORY https://github.com/pybind/pybind11.git |
| 4 | GIT_TAG v2.6.0 |
| 5 | ) |
| 6 | |
| 7 | FetchContent_GetProperties(pybind11) |
| 8 | # Check if population has already been performed |
| 9 | string(TOLOWER "pybind11" lcName) |
| 10 | if(NOT ${lcName}_POPULATED) |
| 11 | # Fetch the content using previously declared details |
| 12 | FetchContent_Populate(pybind11) |
| 13 | endif() |
| 14 | |
| 15 | set(pybind11_INCLUDE_DIRS ${pybind11_SOURCE_DIR}/include) |
| 16 | |