From 0ab69b9cfd5bbcb1a32cb8227b0b31885e8395a8 Mon Sep 17 00:00:00 2001 From: Moritz W Date: Wed, 18 Oct 2017 13:13:44 +0200 Subject: [PATCH] Fix problem when installing with tests activated, so gtest and gmock are not installed --- hueplusplus/test/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hueplusplus/test/CMakeLists.txt b/hueplusplus/test/CMakeLists.txt index 81143aa..5bb8486 100755 --- a/hueplusplus/test/CMakeLists.txt +++ b/hueplusplus/test/CMakeLists.txt @@ -19,14 +19,14 @@ set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) # Add googletest directly to our build. This defines # the gtest and gtest_main targets. -add_subdirectory(${CMAKE_BINARY_DIR}/googletest-src - ${CMAKE_BINARY_DIR}/googletest-build) +add_subdirectory(${CMAKE_BINARY_DIR}/googletest-src EXCLUDE_FROM_ALL + ${CMAKE_BINARY_DIR}/googletest-build EXCLUDE_FROM_ALL) # The gtest/gtest_main targets carry header search path # dependencies automatically when using CMake 2.8.11 or # later. Otherwise we have to add them here ourselves. if (CMAKE_VERSION VERSION_LESS 2.8.11) - include_directories("${gtest_SOURCE_DIR}/include") + include_directories("${gtest_SOURCE_DIR}/include" EXCLUDE_FROM_ALL) endif() file(GLOB TEST_SOURCES test_*) -- libgit2 0.21.4