cmake: Prevent gtest from installing its files

This commit is contained in:
Florent Castelli 2017-02-05 20:19:30 +01:00
parent 5058d07861
commit d096b7b378

View File

@ -967,7 +967,7 @@ if(GTEST_FOUND AND USE_SHARED_GTEST)
else() else()
message(STATUS "Using static gtest from Externals") message(STATUS "Using static gtest from Externals")
include_directories(Externals/gtest/include) include_directories(Externals/gtest/include)
add_subdirectory(Externals/gtest) add_subdirectory(Externals/gtest EXCLUDE_FROM_ALL)
endif() endif()
enable_testing() enable_testing()