Skip to content

Commit

Permalink
for googletest dep, set OVERRIDE_FIND_PACKAGE
Browse files Browse the repository at this point in the history
Otherwise, an unsupported version of gtest/gmock will be found at
/opt/conda/include for ROCm builds.
  • Loading branch information
jeffdaily committed Jul 14, 2023
1 parent de1376a commit 3fb38a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/external/onnxruntime_external_deps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ if (onnxruntime_BUILD_UNIT_TESTS)
FetchContent_Declare(
googletest
URL ${DEP_URL_googletest}
FIND_PACKAGE_ARGS NAMES GTest
URL_HASH SHA1=${DEP_SHA1_googletest}
OVERRIDE_FIND_PACKAGE
)
endif()

Expand Down

0 comments on commit 3fb38a8

Please sign in to comment.