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

[ROCm/rccl commit: 88a062342b]
Este cometimento está contido em:
Wenkai Du criou e GitHub cometeu 2020-10-02 15:25:40 -07:00
1 ascendente dbde26e681
cometimento e12db6f2ab
1 ficheiro modificado
+1 -1
+1 -1
Ver ficheiro
@@ -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++")