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

[ROCm/rccl commit: 88a062342b]
Tá an tiomantas seo le fáil i:
Wenkai Du údaraithe agus GitHub tiomanta 2020-10-02 15:25:40 -07:00
1 tuismitheoir dbde26e681
tiomantas e12db6f2ab
1 comhad athraithe
+1 -1
+1 -1
Féach ar an gComhad
@@ -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++")