From 909f5c9b7c81c600ba8a80c45f60717a61b31dc0 Mon Sep 17 00:00:00 2001 From: Shoaib Meenai Date: Thu, 2 Nov 2017 01:07:37 +0000 Subject: [PATCH] [cmake] Switch FATAL_ERROR to SEND_ERROR It's possible for multiple distribution components to have missing targets, and it's a lot more convenient to get all those errors in one shot rather than having to fix them individually. llvm-svn: 317148 --- llvm/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt index 90847d2..0456503 100644 --- a/llvm/CMakeLists.txt +++ b/llvm/CMakeLists.txt @@ -1001,13 +1001,13 @@ if(LLVM_DISTRIBUTION_COMPONENTS) if(TARGET ${target}) add_dependencies(distribution ${target}) else() - message(FATAL_ERROR "Specified distribution component '${target}' doesn't have a target") + message(SEND_ERROR "Specified distribution component '${target}' doesn't have a target") endif() if(TARGET install-${target}) add_dependencies(install-distribution install-${target}) else() - message(FATAL_ERROR "Specified distribution component '${target}' doesn't have an install target") + message(SEND_ERROR "Specified distribution component '${target}' doesn't have an install target") endif() endforeach() endif() -- 2.7.4