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

Michał Górny via All-commits all-commits at lists.llvm.org
Sun Nov 6 00:55:42 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b6be37b0be5e1b524456c375700c76b7dae5171c
      https://github.com/llvm/llvm-project/commit/b6be37b0be5e1b524456c375700c76b7dae5171c
  Author: Michał Górny <mgorny at gentoo.org>
  Date:   2022-11-06 (Sun, 06 Nov 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