diff --git a/cmake/modules/ANTLR.cmake b/cmake/modules/ANTLR.cmake index aede0098b7fb6..e1a805d9e4e28 100644 --- a/cmake/modules/ANTLR.cmake +++ b/cmake/modules/ANTLR.cmake @@ -3,7 +3,7 @@ if(USE_ANTLR) /usr/local/lib/antlr-*-complete.jar /usr/local/Cellar/*antlr-*-complete.jar) - if(DEFINED ANTLR4) + if(DEFINED ANTLR4 AND ANTLR4) # Get the first element of the list of antlr jars. # Sort and reverse the list so the item selected is the highest # version in lib or else in Cellar if no lib installation exists.