From 3fb38a879ff820d769b83c3911dfbe4325f21eb9 Mon Sep 17 00:00:00 2001 From: Jeff Daily Date: Fri, 14 Jul 2023 18:42:50 +0000 Subject: [PATCH] for googletest dep, set OVERRIDE_FIND_PACKAGE Otherwise, an unsupported version of gtest/gmock will be found at /opt/conda/include for ROCm builds. --- cmake/external/onnxruntime_external_deps.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake index 4aa557e930744..e64f23c727e6e 100644 --- a/cmake/external/onnxruntime_external_deps.cmake +++ b/cmake/external/onnxruntime_external_deps.cmake @@ -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()