[llvm] r348217 - [projects] Use directory name for add_llvm_external_projects
Shoaib Meenai via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 3 16:12:03 PST 2018
Author: smeenai
Date: Mon Dec 3 16:12:03 2018
New Revision: 348217
URL: http://llvm.org/viewvc/llvm-project?rev=348217&view=rev
Log:
[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.
Modified:
llvm/trunk/projects/CMakeLists.txt
Modified: llvm/trunk/projects/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/projects/CMakeLists.txt?rev=348217&r1=348216&r2=348217&view=diff
==============================================================================
--- llvm/trunk/projects/CMakeLists.txt (original)
+++ llvm/trunk/projects/CMakeLists.txt Mon Dec 3 16:12:03 2018
@@ -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)
More information about the llvm-commits
mailing list