[libcxx] r244717 - Fix CMake error whet llvm-config reports a non-existent source directory.
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 11 23:36:20 PDT 2015
Author: ericwf
Date: Wed Aug 12 01:36:19 2015
New Revision: 244717
URL: http://llvm.org/viewvc/llvm-project?rev=244717&view=rev
Log:
Fix CMake error whet llvm-config reports a non-existent source directory.
Modified:
libcxx/trunk/cmake/Modules/HandleOutOfTreeLLVM.cmake
Modified: libcxx/trunk/cmake/Modules/HandleOutOfTreeLLVM.cmake
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/cmake/Modules/HandleOutOfTreeLLVM.cmake?rev=244717&r1=244716&r2=244717&view=diff
==============================================================================
--- libcxx/trunk/cmake/Modules/HandleOutOfTreeLLVM.cmake (original)
+++ libcxx/trunk/cmake/Modules/HandleOutOfTreeLLVM.cmake Wed Aug 12 01:36:19 2015
@@ -42,11 +42,15 @@ macro(find_llvm_parts)
endif()
if (NOT EXISTS ${LLVM_MAIN_SRC_DIR})
- message(FATAL_ERROR "Not found: ${LLVM_MAIN_SRC_DIR}")
+ set(LLVM_FOUND OFF)
+ message(WARNING "Not found: ${LLVM_MAIN_SRC_DIR}")
+ return()
endif()
if(NOT EXISTS ${LLVM_CMAKE_PATH})
- message(FATAL_ERROR "Not found: ${LLVM_CMAKE_PATH}")
+ set(LLVM_FOUND OFF)
+ message(WARNING "Not found: ${LLVM_CMAKE_PATH}")
+ return()
endif()
list(APPEND CMAKE_MODULE_PATH "${LLVM_CMAKE_PATH}")
More information about the cfe-commits
mailing list