Skip to content
Snippets Groups Projects
Commit 075930df authored by Adam Wardynski's avatar Adam Wardynski
Browse files

Workaround for runantlr not setting up date stamps.

That forced antlr to run every time. The workaround is to remove the output directory
so files are generated from clean slate, thus have proper time stamps.
parent ada86aa5
No related merge requests found
......@@ -80,6 +80,7 @@ ADD_CUSTOM_COMMAND(
${PROJECT_BINARY_DIR}/parser/ANTLRParser.hpp
${PROJECT_BINARY_DIR}/parser/ANTLRExprTokenTypes.hpp
${PROJECT_BINARY_DIR}/parser/ANTLRExprTokenTypes.txt
COMMAND ${CMAKE_COMMAND} -E remove_directory ${PROJECT_BINARY_DIR}/parser
COMMAND runantlr -o parser ${PROJECT_SOURCE_DIR}/parser/grammar.g
DEPENDS ${PROJECT_SOURCE_DIR}/parser/grammar.g
COMMENT "-- Generating ANTLR parser cpp/hpp/txt files")
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment