Don't download GTest unless building unit test (#275)

[ROCm/rccl commit: 88a062342b]
Tento commit je obsažen v:
Wenkai Du
2020-10-02 15:25:40 -07:00
odevzdal GitHub
rodič dbde26e681
revize e12db6f2ab
+1 -1
Zobrazit soubor
@@ -34,7 +34,7 @@ include(cmake/DownloadProject.cmake)
find_package(GTest 1.10)
if(NOT GTest_FOUND OR INSTALL_DEPENDENCIES)
if(NOT GTest_FOUND AND BUILD_TESTS OR INSTALL_DEPENDENCIES)
if(CMAKE_CXX_COMPILER MATCHES ".*/hipcc$")
# hip-clang cannot compile googlebenchmark for some reason
set(COMPILER_OVERRIDE "-DCMAKE_CXX_COMPILER=g++")