[llvm-commits] [llvm] r124854 - /llvm/trunk/cmake/modules/TableGen.cmake
Oscar Fuentes
ofv at wanadoo.es
Thu Feb 3 19:47:50 PST 2011
Author: ofv
Date: Thu Feb 3 21:47:50 2011
New Revision: 124854
URL: http://llvm.org/viewvc/llvm-project?rev=124854&view=rev
Log:
Add the tablegenned files to the `clean' target.
Modified:
llvm/trunk/cmake/modules/TableGen.cmake
Modified: llvm/trunk/cmake/modules/TableGen.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/TableGen.cmake?rev=124854&r1=124853&r2=124854&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/TableGen.cmake (original)
+++ llvm/trunk/cmake/modules/TableGen.cmake Thu Feb 3 21:47:50 2011
@@ -35,6 +35,11 @@
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)
More information about the llvm-commits
mailing list