summaryrefslogtreecommitdiff
path: root/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
commitba6ac919951b8c09c8c22bcdd96dabc5cc30c112 (patch)
treeae1e9ad9e274c3c116b9f88f554ae61a72867945 /cmake
parent92e946630d5f9bb092853b93501387dd216899b9 (diff)
downloadllvm-ba6ac919951b8c09c8c22bcdd96dabc5cc30c112.tar.gz
llvm-ba6ac919951b8c09c8c22bcdd96dabc5cc30c112.tar.bz2
llvm-ba6ac919951b8c09c8c22bcdd96dabc5cc30c112.tar.xz
Add the tablegenned files to the `clean' target.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124854 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/TableGen.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/modules/TableGen.cmake b/cmake/modules/TableGen.cmake
index 73831199b1..9d67137bb4 100644
--- a/cmake/modules/TableGen.cmake
+++ b/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)