microsoft/onnxruntime-extensions
Publicmirrored fromhttps://github.com/microsoft/onnxruntime-extensionsAvailable
cmake/externals/gsl.cmake
18lines · modecode
| 1 | if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.24.0") |
| 2 | FetchContent_Declare( |
| 3 | GSL |
| 4 | URL https://github.com/microsoft/GSL/archive/refs/tags/v4.0.0.zip |
| 5 | URL_HASH SHA1=cf368104cd22a87b4dd0c80228919bb2df3e2a14 |
| 6 | FIND_PACKAGE_ARGS 4.0 NAMES Microsoft.GSL |
| 7 | DOWNLOAD_EXTRACT_TIMESTAMP TRUE |
| 8 | ) |
| 9 | else() |
| 10 | FetchContent_Declare( |
| 11 | GSL |
| 12 | URL https://github.com/microsoft/GSL/archive/refs/tags/v4.0.0.zip |
| 13 | URL_HASH SHA1=cf368104cd22a87b4dd0c80228919bb2df3e2a14 |
| 14 | ) |
| 15 | endif() |
| 16 | |
| 17 | FetchContent_MakeAvailable(GSL) |
| 18 | get_target_property(GSL_INCLUDE_DIR Microsoft.GSL::GSL INTERFACE_INCLUDE_DIRECTORIES) |
| 19 | |