Skip to content

Commit

Permalink
Build: Report error if ANTLR is unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
sanssecours committed May 4, 2018
1 parent 40ee717 commit 4d4efe4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4d4efe4

Please sign in to comment.