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:
parent
b5cf03f5ad
commit
e6e4000863
|
@ -51,6 +51,7 @@ function( make_lexer outputTarget inputFile outHeaderFile outCppFile enum )
|
||||||
DEPENDS ${outHeaderFile} ${outCppFile}
|
DEPENDS ${outHeaderFile} ${outCppFile}
|
||||||
${CMAKE_MODULE_PATH}/TokenList2DsnLexer.cmake
|
${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
|
# extra_args, if any, are treated as source files (typically headers) which
|
||||||
# are known to depend on the generated outHeader.
|
# are known to depend on the generated outHeader.
|
||||||
|
|
Loading…
Reference in New Issue