CMake: Add generated lexer files to clean list

When running make clean, we'd like to remove all generated files
including the lexer files to allow for a fresh rebuild
This commit is contained in:
Seth Hillbrand 2019-06-18 06:22:18 -07:00
parent b5cf03f5ad
commit e6e4000863
1 changed files with 1 additions and 0 deletions

View File

@ -51,6 +51,7 @@ function( make_lexer outputTarget inputFile outHeaderFile outCppFile enum )
DEPENDS ${outHeaderFile} ${outCppFile}
${CMAKE_MODULE_PATH}/TokenList2DsnLexer.cmake
)
set_property( GLOBAL PROPERTY ADDITIONAL_MAKE_CLEAN_FILES ${outHeaderFile} ${outCppFile} )
# extra_args, if any, are treated as source files (typically headers) which
# are known to depend on the generated outHeader.