summaryrefslogtreecommitdiffstats
path: root/llvm/cmake
diff options
context:
space:
mode:
authorOscar Fuentes <ofv@wanadoo.es>2011-02-04 03:47:50 +0000
committerOscar Fuentes <ofv@wanadoo.es>2011-02-04 03:47:50 +0000
commita6aa87898b0f0d6b7d0e5477dffc2aa314c18a7e (patch)
treee647266232a1b1951c948fe2c7932af19c9b18ec /llvm/cmake
parentd0548ae7509dedd1b7c14ab815eaf61ae167ac99 (diff)
downloadbcm5719-llvm-a6aa87898b0f0d6b7d0e5477dffc2aa314c18a7e.tar.gz
bcm5719-llvm-a6aa87898b0f0d6b7d0e5477dffc2aa314c18a7e.zip
Add the tablegenned files to the `clean' target.
llvm-svn: 124854
Diffstat (limited to 'llvm/cmake')
-rw-r--r--llvm/cmake/modules/TableGen.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/cmake/modules/TableGen.cmake b/llvm/cmake/modules/TableGen.cmake
index 73831199b13..9d67137bb42 100644
--- a/llvm/cmake/modules/TableGen.cmake
+++ b/llvm/cmake/modules/TableGen.cmake
@@ -35,6 +35,11 @@ macro(tablegen ofn)
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${ofn}.tmp
COMMENT ""
)
+
+ # `make clean' must remove all those generated files:
+ set_property(DIRECTORY APPEND
+ PROPERTY ADDITIONAL_MAKE_CLEAN_FILES ${ofn}.tmp ${ofn})
+
set(TABLEGEN_OUTPUT ${TABLEGEN_OUTPUT} ${CMAKE_CURRENT_BINARY_DIR}/${ofn})
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${ofn}
PROPERTIES GENERATED 1)
OpenPOWER on IntegriCloud