File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,13 @@ FetchContent_Declare(
3232
3333onnxruntime_fetchcontent_makeavailable(abseil_cpp)
3434FetchContent_GetProperties(abseil_cpp)
35- set (ABSEIL_SOURCE_DIR ${abseil_cpp_SOURCE_DIR} )
35+ if (abseil_cpp_SOURCE_DIR)
36+ set (ABSEIL_SOURCE_DIR ${abseil_cpp_SOURCE_DIR} )
37+ if (onnxruntime_USE_WEBGPU)
38+ set (DAWN_ABSEIL_DIR ${abseil_cpp_SOURCE_DIR} )
39+ endif ()
40+ endif ()
41+
3642# abseil_cpp_SOURCE_DIR is non-empty if we build it from source
3743message (STATUS "Abseil source dir:" ${ABSEIL_SOURCE_DIR} )
3844# abseil_cpp_VERSION is non-empty if we find a preinstalled ABSL
Original file line number Diff line number Diff line change @@ -222,6 +222,11 @@ onnxruntime_fetchcontent_makeavailable(Protobuf)
222222if (Protobuf_FOUND)
223223 message (STATUS "Protobuf version: ${Protobuf_VERSION} " )
224224else ()
225+ if (protobuf_SOURCE_DIR)
226+ if (onnxruntime_USE_WEBGPU)
227+ set (DAWN_PROTOBUF_DIR ${protobuf_SOURCE_DIR} )
228+ endif ()
229+ endif ()
225230 # Adjust warning flags
226231 if (TARGET libprotoc)
227232 if (NOT MSVC )
You can’t perform that action at this time.
0 commit comments