From: NAKAMURA Takumi Date: Sat, 22 Aug 2015 05:11:02 +0000 (+0000) Subject: [CMake] add_llvm_external_project: Just warn about nonexistent directories. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=fcaa24c56d7dd6f5fd77187e32c40d76927262c8 [CMake] add_llvm_external_project: Just warn about nonexistent directories. These entries were generated accidentally. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245783 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake index 6ab580827aa..59c46f812c6 100644 --- a/cmake/modules/AddLLVM.cmake +++ b/cmake/modules/AddLLVM.cmake @@ -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()