[all-commits] [llvm/llvm-project] e5eeb8: Make unittests include path relative

Seebi via All-commits all-commits at lists.llvm.org
Fri Feb 21 01:19:17 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e5eeb8465f29bf4e9cf6f1edb88573338fc12725
      https://github.com/llvm/llvm-project/commit/e5eeb8465f29bf4e9cf6f1edb88573338fc12725
  Author: Sebastian Neubauer <sebastian.neubauer at amd.com>
  Date:   2020-02-21 (Fri, 21 Feb 2020)

  Changed paths:
    M llvm/unittests/TableGen/CMakeLists.txt

  Log Message:
  -----------
  Make unittests include path relative

This change is relevant when embedding the llvm cmake project into
another project.  It should not change the build behavior of a normal
llvm build.

In the case where llvm is embedded as a cmake subproject,
CMAKE_SOURCE_DIR does not point to the expected directory and building
the tests fails.
Using CMAKE_CURRENT_SOURCE_DIR fixes this problem, as it will always
point to the same directory.

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




More information about the All-commits mailing list