From 131d2ec4875d356ad3e128b814b332f2ed75ffdf Mon Sep 17 00:00:00 2001 From: Pawel Kurdybacha Date: Sun, 29 Apr 2018 12:57:32 +0100 Subject: [PATCH] Problem: googletest is also installed into install destination Building and installing cppzmq brings googletest build artifacts to the installation destination as well. For example someone building cppzmq with: ``` cmake -DCMAKE_INSTALL_PREFIX=mydest . cmake --build --target install ``` gets googletest headers and libraries in `mydest`. Solution: remove googletest from install target --- tests/cmake/googletest.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/cmake/googletest.cmake b/tests/cmake/googletest.cmake index 8a052c8..7f6ec11 100644 --- a/tests/cmake/googletest.cmake +++ b/tests/cmake/googletest.cmake @@ -33,5 +33,6 @@ endif() add_subdirectory( ${_download_root}/googletest-src ${_download_root}/googletest-build + EXCLUDE_FROM_ALL ) endmacro()