[PATCH] Prevent CMake from installing libgtest*

Michał Górny mgorny at gentoo.org
Sun Dec 29 13:43:09 PST 2013


Currently, CMake install libgtest and libgtest_main as part of LLVM
install. This is twice wrong since:

1. libgtest is intended to be used locally within a package
and not installed globally,

2. even if it were, it should be then installed as a dedicated package
rather than a part of LLVM :).

Otherwise, we're just asking for package collisions to happen.

The attached patch uses the EXCLUDE_FROM_ALL option to prevent libgtest
from being built as part of the default target (it is instead pulled in
as dependency of tests) and from being installed on the host system.

Fixes: http://llvm.org/bugs/show_bug.cgi?id=18341

-- 
Best regards,
Michał Górny
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Prevent-CMake-from-installing-libgtest.patch
Type: text/x-patch
Size: 957 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131229/a8947ee4/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 966 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131229/a8947ee4/attachment.sig>


More information about the llvm-commits mailing list