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:
@@ -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
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
IF(gtest_BINARY_DIR)
|
||||
MESSAGE(STATUS "Using googletest submodule")
|
||||
MESSAGE(STATUS "Using googletest git submodule.")
|
||||
SET(GTEST_FOUND true)
|
||||
ELSE()
|
||||
FIND_PACKAGE(GTest)
|
||||
|
||||
Reference in New Issue
Block a user