mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-01 23:30:35 +00:00
Fix find_package for benchmark
This commit is contained in:
parent
98faaa7e2f
commit
efb0928e2b
1 changed files with 2 additions and 2 deletions
|
|
@ -707,9 +707,9 @@ endif()
|
|||
|
||||
if (onnxruntime_BUILD_BENCHMARKS)
|
||||
if (onnxruntime_PREFER_SYSTEM_LIB)
|
||||
find_package(benchmark)
|
||||
find_package(benchmark CONFIG)
|
||||
endif()
|
||||
if (benchmark_FOUND)
|
||||
if (TARGET benchmark::benchmark)
|
||||
message("Use benchmark from preinstalled system lib")
|
||||
else()
|
||||
message("Use benchmark from submodule")
|
||||
|
|
|
|||
Loading…
Reference in a new issue