diff --git a/CMakeModules/Functions.cmake b/CMakeModules/Functions.cmake index 53c4c21e75..b853b332c8 100644 --- a/CMakeModules/Functions.cmake +++ b/CMakeModules/Functions.cmake @@ -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.