summaryrefslogtreecommitdiff
path: root/cmake/FindGTest.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/FindGTest.cmake')
-rw-r--r--cmake/FindGTest.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/FindGTest.cmake b/cmake/FindGTest.cmake
index bc12e44ba..d36829784 100644
--- a/cmake/FindGTest.cmake
+++ b/cmake/FindGTest.cmake
@@ -25,7 +25,11 @@ if(GTest_INCLUDE_DIR AND GTest_LIBRARIES AND GTest_MAIN_LIBRARIES)
endif()
if(NOT GTest_FOUND_SYSTEM)
- check_auto_download("GTest" "")
+ check_ep_downloaded("GTest-EP")
+ if(NOT GTest-EP_DOWNLOADED)
+ check_auto_download("GTest" "")
+ endif()
+
include(ExternalProject)
set(GTest_VERSION "1.10.0")
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback