mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-29 23:06:41 +00:00
This reverts commit bb136f86c8, then
re-implement it in a different way.
I reverted the original change, then added a version constraint to the
find_package args.
If you still found it picks up wrong gtest version after this change,
you may disable `find_package` by setting
'FETCHCONTENT_TRY_FIND_PACKAGE_MODE' to NEVER. For example, the latest
gtest version is 1.14.0. If at a later time Google releases a new
version of gtest and that one is incompatible with the ONNX Runtime
source code you get today and your dev environment already installed the
new version and you do not want to create a new clean build environment
that is without the package, you can add `--cmake_extra_defines
FETCHCONTENT_TRY_FIND_PACKAGE_MODE=NEVER` to your build command to solve
the problem.
This commit is contained in:
parent
b52127d22d
commit
24a3c740c0
1 changed files with 1 additions and 1 deletions
|
|
@ -43,8 +43,8 @@ if (onnxruntime_BUILD_UNIT_TESTS)
|
|||
FetchContent_Declare(
|
||||
googletest
|
||||
URL ${DEP_URL_googletest}
|
||||
FIND_PACKAGE_ARGS 1.14.0...<2.0.0 NAMES GTest
|
||||
URL_HASH SHA1=${DEP_SHA1_googletest}
|
||||
OVERRIDE_FIND_PACKAGE
|
||||
)
|
||||
endif()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue