From 4d4efe4b7dcf8ebcd610a8eeb08c96d947e6562e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rene=CC=81=20Schwaiger?= Date: Fri, 4 May 2018 10:43:11 +0200 Subject: [PATCH] Build: Report error if ANTLR is unavailable --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cff64e1..4c8ade6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,12 +7,12 @@ execute_process (COMMAND antlr4 RESULT_VARIABLE ANTLR_NOT_AVAILABLE OUTPUT_QUIET) if (ANTLR_NOT_AVAILABLE) - remove_plugin (yanlr "ANTLR 4 executable (antlr4) not found") + message (FATAL_ERROR "ANTLR 4 executable (antlr4) not found") endif (ANTLR_NOT_AVAILABLE) find_package (ANTLR4CPP QUIET) if (NOT ANTLR4CPP_FOUND) - remove_plugin (yanlr "ANTLR 4 CPP runtime (antlr4-cpp-runtime) not found") + message (FATAL_ERROR "ANTLR 4 CPP runtime (antlr4-cpp-runtime) not found") endif (NOT ANTLR4CPP_FOUND) set (GRAMMAR_NAME Test)