HomePhabricator

Make unittests include path relative

Authored by sebastian-ne on Jan 24 2020, 3:17 AM.

Description

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

Details

Committed
sebastian-neFeb 21 2020, 1:19 AM
Differential Revision
D73466: Make unittests include path relative
Parents
rGbc498198b555: [clangd] Allow renaming class templates in cross-file rename.
Branches
Unknown
Tags
Unknown