From c4f819068eaf5dffebd1223bfeae7a6f64c5a6c7 Mon Sep 17 00:00:00 2001 From: Shoaib Meenai Date: Tue, 4 Dec 2018 00:12:03 +0000 Subject: [PATCH] [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 --- projects/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/CMakeLists.txt b/projects/CMakeLists.txt index 7a20850e36f..9afc30c8928 100644 --- a/projects/CMakeLists.txt +++ b/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)