summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShoaib Meenai <smeenai@fb.com>2018-12-04 00:12:03 +0000
committerShoaib Meenai <smeenai@fb.com>2018-12-04 00:12:03 +0000
commitef7657754d6adf81cb9a7b404c973d25c39ff79d (patch)
treeeb458677a0904d7b1e9c31f43a7e3c8d44a97e68
parentcf5ecb1adb67b6884d332255b31b7dd303457691 (diff)
downloadbcm5719-llvm-ef7657754d6adf81cb9a7b404c973d25c39ff79d.tar.gz
bcm5719-llvm-ef7657754d6adf81cb9a7b404c973d25c39ff79d.zip
[projects] Use directory name for add_llvm_external_projects
add_llvm_external_projects expects the directory name instead of the full path, otherwise the check for an in-tree subproject will fail and the project won't be configured. llvm-svn: 348217
-rw-r--r--llvm/projects/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/projects/CMakeLists.txt b/llvm/projects/CMakeLists.txt
index 7a20850e36f..9afc30c8928 100644
--- a/llvm/projects/CMakeLists.txt
+++ b/llvm/projects/CMakeLists.txt
@@ -13,7 +13,8 @@ foreach(entry ${entries})
(NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/parallel-libs) AND
(NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/openmp) AND
(NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/debuginfo-tests))
- add_llvm_external_project(${entry})
+ get_filename_component(entry_name "${entry}" NAME)
+ add_llvm_external_project(${entry_name})
endif()
endif()
endforeach(entry)
OpenPOWER on IntegriCloud