Merge pull request #2105 from gendalph/cmake

The correction for cmake depends on the demo
This commit is contained in:
Terence Parr 2017-11-29 09:49:38 -08:00 committed by GitHub
commit e11e707a38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -20,7 +20,8 @@ foreach( src_file ${antlr4-demo-GENERATED_SRC} )
)
endforeach( src_file ${antlr4-demo-GENERATED_SRC} )
add_custom_target(GenerateParser
add_custom_target(GenerateParser DEPENDS ${antlr4-demo-GENERATED_SRC})
add_custom_command(OUTPUT ${antlr4-demo-GENERATED_SRC}
COMMAND
${CMAKE_COMMAND} -E make_directory ${PROJECT_SOURCE_DIR}/demo/generated/
COMMAND