OSDN Git Service

[NFC][AMDGPU] Fix cmake when LLVM is a subproject
authorSebastian Neubauer <sebastian.neubauer@amd.com>
Wed, 22 Apr 2020 12:01:38 +0000 (14:01 +0200)
committerSebastian Neubauer <sebastian.neubauer@amd.com>
Wed, 22 Apr 2020 12:25:44 +0000 (14:25 +0200)
commitbffd45bab199cbe6021927ca4ab56e944eff5381
tree4f1c6fe4694b11df81a6170eef30c1316f63f618
parent8c61114c53dcd6139a4a750925b91ed9bcf4178c
[NFC][AMDGPU] Fix cmake when LLVM is a subproject

CMAKE_SOURCE_DIR is not the right directory if llvm is included in
another cmake project. PROJECT_SOURCE_DIR is always the same and should
be used instead.
llvm/unittests/Target/AMDGPU/CMakeLists.txt