From e6e400086330d3d313a83a75ebca47b11792c5ea Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Tue, 18 Jun 2019 06:22:18 -0700 Subject: [PATCH] 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 --- CMakeModules/Functions.cmake | 1 + 1 file changed, 1 insertion(+) 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.