1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Only include googletest if the git submodule has been fetched.

This commit is contained in:
Matias Fontanini
2015-04-23 19:43:00 -07:00
parent c5b9afaf83
commit 745ebfb904
2 changed files with 5 additions and 2 deletions

View File

@@ -139,7 +139,10 @@ ADD_SUBDIRECTORY(include)
ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(examples)
ADD_SUBDIRECTORY(googletest)
# Only include googletest if the git submodule has been fetched
IF(EXISTS "googletest/CMakeLists.txt")
ADD_SUBDIRECTORY(googletest)
ENDIF()
ADD_SUBDIRECTORY(tests)
# Add all targets to the build-tree export set