mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:49:45 +00:00
[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:
parent
3dcd893361
commit
fd7f783e1e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user