mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-28 05:40:35 +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