[all-commits] [llvm/llvm-project] a6eb76: [llvm] [cmake] Set EXCLUDE_FROM_ALL on gtest and T...

Michał Górny via All-commits all-commits at lists.llvm.org
Thu Nov 24 08:52:41 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a6eb76f57c4aec624dad018a5cd776d2c19ae773
      https://github.com/llvm/llvm-project/commit/a6eb76f57c4aec624dad018a5cd776d2c19ae773
  Author: Michał Górny <mgorny at gentoo.org>
  Date:   2022-11-24 (Thu, 24 Nov 2022)

  Changed paths:
    M llvm/lib/Testing/Support/CMakeLists.txt
    M third-party/unittest/CMakeLists.txt

  Log Message:
  -----------
  [llvm] [cmake] Set EXCLUDE_FROM_ALL on gtest and TestingSupport

Exclude building googletest and LLVMTestingSupport libraries from
the `all` target.  If unittests are being built, these libraries will
be built as a dependency anyway.  If they are not being built, building
them makes little sense as they are not installed or used otherwise.

This will also make standalone builds of other projects easier, as it
makes it possible to include these directories without having to cover
them with additional conditions to prevent them from being built
unconditionally.

Differential Revision: https://reviews.llvm.org/D137035




More information about the All-commits mailing list