mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
fd7f783e1e
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.
17 lines
261 B
CMake
17 lines
261 B
CMake
include_directories(
|
|
${PROJECT_SOURCE_DIR}/lib/Target/AMDGPU
|
|
${PROJECT_BINARY_DIR}/lib/Target/AMDGPU
|
|
)
|
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
AMDGPUCodeGen
|
|
AMDGPUDesc
|
|
AMDGPUInfo
|
|
MC
|
|
Support
|
|
)
|
|
|
|
add_llvm_target_unittest(AMDGPUTests
|
|
DwarfRegMappings.cpp
|
|
)
|