1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

[CMake] add_llvm_external_project: Just warn about nonexistent directories.

These entries were generated accidentally.

llvm-svn: 245783
This commit is contained in:
NAKAMURA Takumi 2015-08-22 05:11:02 +00:00
parent 4cfca08317
commit 5f184b4bb7

View File

@ -719,7 +719,11 @@ macro(add_llvm_external_project name)
"Whether to build ${name} as part of LLVM" "Whether to build ${name} as part of LLVM"
${LLVM_TOOL_${nameUPPER}_BUILD_DEFAULT}) ${LLVM_TOOL_${nameUPPER}_BUILD_DEFAULT})
if (LLVM_TOOL_${nameUPPER}_BUILD) if (LLVM_TOOL_${nameUPPER}_BUILD)
if(EXISTS ${LLVM_EXTERNAL_${nameUPPER}_SOURCE_DIR})
add_subdirectory(${LLVM_EXTERNAL_${nameUPPER}_SOURCE_DIR} ${add_llvm_external_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. # FIXME: It'd be redundant.
set(LLVM_TOOL_${nameUPPER}_BUILD Off) set(LLVM_TOOL_${nameUPPER}_BUILD Off)
endif() endif()