Fix microbenchmark build failure (#8064)

Co-authored-by: Chen Fu <fuchen@microsoft.com>
This commit is contained in:
Chen Fu 2021-06-15 20:49:39 -07:00 committed by GitHub
parent e31784b6cf
commit 32e118bef0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -664,7 +664,7 @@ if(onnxruntime_BUILD_BENCHMARKS)
# We will not need to install benchmark since we link it statically.
set(BENCHMARK_ENABLE_INSTALL OFF CACHE BOOL "Disable benchmark install to avoid overwriting vendor install.")
add_subdirectory(${PROJECT_SOURCE_DIR}/external/googlebenchmark EXCLUDE_FROM_ALL)
add_library(benchmark::benchmark ALIAS benchmark)
#add_library(benchmark::benchmark ALIAS benchmark)
endif()
endif()