mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
23 lines
650 B
CMake
23 lines
650 B
CMake
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
# Licensed under the MIT License.
|
|
|
|
include(FetchContent)
|
|
|
|
# Pass to build
|
|
set(ABSL_PROPAGATE_CXX_STD 1)
|
|
set(BUILD_TESTING 0)
|
|
|
|
FetchContent_Declare(
|
|
abseil_cpp
|
|
PREFIX "${CMAKE_CURRENT_BINARY_DIR}/abseil-cpp"
|
|
BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/external/abseil-cpp"
|
|
URL https://github.com/abseil/abseil-cpp/archive/refs/tags/20211102.0.zip
|
|
PATCH_COMMAND git apply --ignore-space-change --ignore-whitespace ${PROJECT_SOURCE_DIR}/patches/abseil/Fix_Nvidia_Build_Break.patch
|
|
)
|
|
|
|
FetchContent_MakeAvailable(abseil_cpp)
|
|
FetchContent_GetProperties(abseil_cpp SOURCE_DIR)
|
|
|
|
|
|
|
|
|