microsoft/onnxruntime-extensions

Public

mirrored fromhttps://github.com/microsoft/onnxruntime-extensionsAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
27132ced71e5e35e3ee706398a316010a5ada1d9

Branches

Tags

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

Clone

HTTPS

Download ZIP

cmake/externals/gsl.cmake

18lines · modepreview

if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.24.0")
    FetchContent_Declare(
        GSL
        URL https://github.com/microsoft/GSL/archive/refs/tags/v4.0.0.zip
        URL_HASH SHA1=cf368104cd22a87b4dd0c80228919bb2df3e2a14
        FIND_PACKAGE_ARGS 4.0 NAMES Microsoft.GSL
        DOWNLOAD_EXTRACT_TIMESTAMP TRUE
    )
else()
    FetchContent_Declare(
        GSL
        URL https://github.com/microsoft/GSL/archive/refs/tags/v4.0.0.zip
        URL_HASH SHA1=cf368104cd22a87b4dd0c80228919bb2df3e2a14
    )
endif()

FetchContent_MakeAvailable(GSL)
get_target_property(GSL_INCLUDE_DIR Microsoft.GSL::GSL INTERFACE_INCLUDE_DIRECTORIES)