[llvm] f0c234d - [NFC] Don't assume llvm directory is CMake root
Michael Platings via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 15 05:07:24 PDT 2022
Author: Michael Platings
Date: 2022-09-15T13:06:54+01:00
New Revision: f0c234d2a6ddace54b09f23c5093224a1748f98b
URL: https://github.com/llvm/llvm-project/commit/f0c234d2a6ddace54b09f23c5093224a1748f98b
DIFF: https://github.com/llvm/llvm-project/commit/f0c234d2a6ddace54b09f23c5093224a1748f98b.diff
LOG: [NFC] Don't assume llvm directory is CMake root
This makes the file consistent with ARM/CMakeLists.txt
Added:
Modified:
llvm/unittests/Target/AArch64/CMakeLists.txt
Removed:
################################################################################
diff --git a/llvm/unittests/Target/AArch64/CMakeLists.txt b/llvm/unittests/Target/AArch64/CMakeLists.txt
index 695babfd79f2b..995e952013492 100644
--- a/llvm/unittests/Target/AArch64/CMakeLists.txt
+++ b/llvm/unittests/Target/AArch64/CMakeLists.txt
@@ -1,6 +1,6 @@
include_directories(
- ${CMAKE_SOURCE_DIR}/lib/Target/AArch64
- ${CMAKE_BINARY_DIR}/lib/Target/AArch64
+ ${LLVM_MAIN_SRC_DIR}/lib/Target/AArch64
+ ${LLVM_BINARY_DIR}/lib/Target/AArch64
)
set(LLVM_LINK_COMPONENTS
More information about the llvm-commits
mailing list