Commit 220c1a2 1 parent b7b5792 commit 220c1a2 Copy full SHA for 220c1a2
File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,13 @@ FetchContent_Declare(
32
32
33
33
onnxruntime_fetchcontent_makeavailable(abseil_cpp)
34
34
FetchContent_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
+
36
42
# abseil_cpp_SOURCE_DIR is non-empty if we build it from source
37
43
message (STATUS "Abseil source dir:" ${ABSEIL_SOURCE_DIR} )
38
44
# 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)
222
222
if (Protobuf_FOUND)
223
223
message (STATUS "Protobuf version: ${Protobuf_VERSION} " )
224
224
else ()
225
+ if (protobuf_SOURCE_DIR)
226
+ if (onnxruntime_USE_WEBGPU)
227
+ set (DAWN_PROTOBUF_DIR ${protobuf_SOURCE_DIR} )
228
+ endif ()
229
+ endif ()
225
230
# Adjust warning flags
226
231
if (TARGET libprotoc)
227
232
if (NOT MSVC )
You can’t perform that action at this time.
0 commit comments