Don't install googletest.
authorM. Eric Irrgang <ericirrgang@gmail.com>
Tue, 13 Aug 2019 11:20:02 +0000 (14:20 +0300)
committerM. Eric Irrgang <ericirrgang@gmail.com>
Tue, 13 Aug 2019 11:25:59 +0000 (14:25 +0300)
We neglected the EXCLUDE_FROM_ALL option to add_subdirectory when
recently restructuring the googletest CMake stuff, resulting in
installation of extra stuff that we really only want in the build tree.

Change-Id: Iac9040e0cb2d1c630d489687e86e59c1ca80a707

src/external/CMakeLists.txt

index c0aa04696a787314cd94548dd45836e32187dc52..b4c06781a2581b3e1edd385c104aff7a916e6971 100644 (file)
@@ -50,7 +50,7 @@ if(BUILD_TESTING AND GMX_BUILD_UNITTESTS)
         set(GTEST_IS_THREADSAFE 0)
     endif()
 
-    add_subdirectory(googletest)
+    add_subdirectory(googletest EXCLUDE_FROM_ALL)
     target_compile_definitions(gmock PRIVATE
                                _GNU_SOURCE=1
                                GTEST_CAN_STREAM_RESULTS=0)