[PATCH] D62289: CMake: allow using LLVM_EXTERNAL_PROJECTS with LLVM_ENABLE_PROJECTS
Hans Wennborg via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 27 02:00:16 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL361751: Cmake: allow using LLVM_EXTERNAL_PROJECTS with LLVM_ENABLE_PROJECTS (authored by hans, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D62289?vs=200879&id=201484#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62289/new/
https://reviews.llvm.org/D62289
Files:
llvm/trunk/CMakeLists.txt
Index: llvm/trunk/CMakeLists.txt
===================================================================
--- llvm/trunk/CMakeLists.txt
+++ llvm/trunk/CMakeLists.txt
@@ -145,6 +145,9 @@
message(FATAL_ERROR "LLVM_ENABLE_PROJECTS requests ${proj} but directory not found: ${PROJ_DIR}")
endif()
set(LLVM_EXTERNAL_${upper_proj}_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../${proj}" CACHE STRING "")
+ elseif ("${proj}" IN_LIST LLVM_EXTERNAL_PROJECTS)
+ message(STATUS "${proj} project is enabled")
+ set(SHOULD_ENABLE_PROJECT TRUE)
else()
message(STATUS "${proj} project is disabled")
set(SHOULD_ENABLE_PROJECT FALSE)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62289.201484.patch
Type: text/x-patch
Size: 662 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190527/324fde17/attachment.bin>
More information about the llvm-commits
mailing list