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

Michał Górny via All-commits all-commits at lists.llvm.org
Mon Oct 31 06:58:24 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 64959325eb470489ca5757b9bd6eef97b402a0da
      https://github.com/llvm/llvm-project/commit/64959325eb470489ca5757b9bd6eef97b402a0da
  Author: Michał Górny <mgorny at gentoo.org>
  Date:   2022-10-31 (Mon, 31 Oct 2022)

  Changed paths:
    M llvm/lib/Testing/Support/CMakeLists.txt
    M llvm/utils/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