Add configured file to files to clean up with make
authorRomain Forlot <romain.forlot@iot.bzh>
Fri, 7 Jul 2017 10:20:19 +0000 (12:20 +0200)
committerRomain Forlot <romain.forlot@iot.bzh>
Fri, 7 Jul 2017 10:20:19 +0000 (12:20 +0200)
Change-Id: Ibef0a4628bf3fe0b830f19fc8aa2f3e5d4b1ff19
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
cmake/cmake.d/02-macros.cmake

index 7444214..2a014a1 100644 (file)
@@ -44,6 +44,7 @@ macro(configure_files_in_dir dir)
                string(REGEX REPLACE "target" "${RSYNC_TARGET}" destinationfile ${filename})
                string(REGEX REPLACE ".in$" "" destinationfile ${destinationfile})
                configure_file(${file} ${CMAKE_CURRENT_BINARY_DIR}/target/${destinationfile})
+               set(ADDITIONAL_MAKE_CLEAN_FILES, "${destinationfile}")
        endforeach()
 endmacro(configure_files_in_dir)