From 2a452ebf76833379f8217531b5027457e11d9dd5 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Mon, 12 Dec 2016 05:05:46 +0000 Subject: [libcxx][CMake] Move the warning to HandleOutOfTreeLLVM This currently gives a warning when building libcxx under runtimes. Differential Revision: https://reviews.llvm.org/D27643 llvm-svn: 289418 --- libcxx/cmake/Modules/HandleOutOfTreeLLVM.cmake | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libcxx/cmake/Modules') diff --git a/libcxx/cmake/Modules/HandleOutOfTreeLLVM.cmake b/libcxx/cmake/Modules/HandleOutOfTreeLLVM.cmake index 599d8a1d4b2..c772143244a 100644 --- a/libcxx/cmake/Modules/HandleOutOfTreeLLVM.cmake +++ b/libcxx/cmake/Modules/HandleOutOfTreeLLVM.cmake @@ -41,6 +41,10 @@ macro(find_llvm_parts) set(LLVM_CMAKE_PATH "${LLVM_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/cmake/llvm") else() set(LLVM_FOUND OFF) + message(WARNING "UNSUPPORTED LIBCXX CONFIGURATION DETECTED: " + "llvm-config not found and LLVM_PATH not defined.\n" + "Reconfigure with -DLLVM_CONFIG_PATH=path/to/llvm-config " + "or -DLLVM_PATH=path/to/llvm-source-root.") return() endif() -- cgit v1.2.3