[llvm] r245783 - [CMake] add_llvm_external_project: Just warn about nonexistent directories.
NAKAMURA Takumi via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 21 22:11:02 PDT 2015
Author: chapuni
Date: Sat Aug 22 00:11:02 2015
New Revision: 245783
URL: http://llvm.org/viewvc/llvm-project?rev=245783&view=rev
Log:
[CMake] add_llvm_external_project: Just warn about nonexistent directories.
These entries were generated accidentally.
Modified:
llvm/trunk/cmake/modules/AddLLVM.cmake
Modified: llvm/trunk/cmake/modules/AddLLVM.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddLLVM.cmake?rev=245783&r1=245782&r2=245783&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake (original)
+++ llvm/trunk/cmake/modules/AddLLVM.cmake Sat Aug 22 00:11:02 2015
@@ -719,7 +719,11 @@ macro(add_llvm_external_project name)
"Whether to build ${name} as part of LLVM"
${LLVM_TOOL_${nameUPPER}_BUILD_DEFAULT})
if (LLVM_TOOL_${nameUPPER}_BUILD)
- add_subdirectory(${LLVM_EXTERNAL_${nameUPPER}_SOURCE_DIR} ${add_llvm_external_dir})
+ if(EXISTS ${LLVM_EXTERNAL_${nameUPPER}_SOURCE_DIR})
+ add_subdirectory(${LLVM_EXTERNAL_${nameUPPER}_SOURCE_DIR} ${add_llvm_external_dir})
+ elseif(NOT "${LLVM_EXTERNAL_${nameUPPER}_SOURCE_DIR}" STREQUAL "")
+ message(WARNING "Nonexistent directory for ${name}: ${LLVM_EXTERNAL_${nameUPPER}_SOURCE_DIR}")
+ endif()
# FIXME: It'd be redundant.
set(LLVM_TOOL_${nameUPPER}_BUILD Off)
endif()
More information about the llvm-commits
mailing list