antlr4 icon indicating copy to clipboard operation
antlr4 copied to clipboard

Antlr broken build if grammar is in subfolders

Open Enerccio opened this issue 3 years ago • 1 comments

Doesn't matter if OUTPUT_DIRECTORY is specified or not, the files will be generated in subfolders but cmake $ANTLR_EgsGrammar_CXX_OUTPUTS} will contain no subfolders resulting in error No such file or directory

Enerccio avatar Sep 05 '22 08:09 Enerccio

All you have to do to fix it is to have -Xexact-output-dir in FindANTLR.cmake add_custom_command

Enerccio avatar Sep 05 '22 08:09 Enerccio