summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>2018-04-05 18:16:02 +0000
committerKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>2018-04-05 18:16:02 +0000
commit8e86fc4049b80760f0d125105c2709b8e02a1bd9 (patch)
treed4196e7a16506ce83840666eed6af4e9816ee514
parent9c64f211b66179d077c17d6808025fcfc39a61a8 (diff)
downloadbcm5719-llvm-8e86fc4049b80760f0d125105c2709b8e02a1bd9.tar.gz
bcm5719-llvm-8e86fc4049b80760f0d125105c2709b8e02a1bd9.zip
llvm-exegesis: Fix unittests include dirs when llvm is a part of another project
When llvm is a part of another project (i.e. opencl), CMAKE_SOURCE_DIR and CMAKE_BINARY_DIR are pointing to the parent project, which lead to build failures. Differential Revision: https://reviews.llvm.org/D45328 llvm-svn: 329325
-rw-r--r--llvm/unittests/tools/llvm-exegesis/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/unittests/tools/llvm-exegesis/CMakeLists.txt b/llvm/unittests/tools/llvm-exegesis/CMakeLists.txt
index acc288ad9d3..bc376e07b90 100644
--- a/llvm/unittests/tools/llvm-exegesis/CMakeLists.txt
+++ b/llvm/unittests/tools/llvm-exegesis/CMakeLists.txt
@@ -1,7 +1,7 @@
include_directories(
- ${CMAKE_SOURCE_DIR}/lib/Target/X86
- ${CMAKE_BINARY_DIR}/lib/Target/X86
- ${CMAKE_SOURCE_DIR}/tools/llvm-exegesis/lib
+ ${LLVM_MAIN_SRC_DIR}/lib/Target/X86
+ ${LLVM_BINARY_DIR}/lib/Target/X86
+ ${LLVM_MAIN_SRC_DIR}/tools/llvm-exegesis/lib
)
set(LLVM_LINK_COMPONENTS
OpenPOWER on IntegriCloud