microsoft/onnxruntime-extensions

Public

mirrored from https://github.com/microsoft/onnxruntime-extensionsAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
copilot/document-operator-contracts

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

cmake/externals/gsl.cmake

19lines · modecode

1if (${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 SOURCE_SUBDIR not_set
9 )
10else()
11 FetchContent_Declare(
12 GSL
13 URL https://github.com/microsoft/GSL/archive/refs/tags/v4.0.0.zip
14 URL_HASH SHA1=cf368104cd22a87b4dd0c80228919bb2df3e2a14
15 )
16endif()
17
18FetchContent_MakeAvailable(GSL)
19set(GSL_INCLUDE_DIR ${gsl_SOURCE_DIR}/include)
20