Skip to content

Commit 131d2ec

Browse files
committed
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
1 parent 99b9967 commit 131d2ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/cmake/googletest.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,6 @@ endif()
3333
add_subdirectory(
3434
${_download_root}/googletest-src
3535
${_download_root}/googletest-build
36+
EXCLUDE_FROM_ALL
3637
)
3738
endmacro()

0 commit comments

Comments
 (0)