[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.
This commit is contained in:
Sebastian Neubauer 2020-04-22 14:01:38 +02:00
parent 3dcd893361
commit fd7f783e1e

View File

@ -1,6 +1,6 @@
include_directories(
${CMAKE_SOURCE_DIR}/lib/Target/AMDGPU
${CMAKE_BINARY_DIR}/lib/Target/AMDGPU
${PROJECT_SOURCE_DIR}/lib/Target/AMDGPU
${PROJECT_BINARY_DIR}/lib/Target/AMDGPU
)
set(LLVM_LINK_COMPONENTS