diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2008-11-14 22:06:14 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2008-11-14 22:06:14 +0000 |
commit | 64ed88c6aa3228d623e32347f46651078b00cf54 (patch) | |
tree | 9c89fea259bef114d5cd7fd1ee756e35c17f198d /cmake/modules/TableGen.cmake | |
parent | cd41458799dea8687a71c97f84cfd1a7223c5f70 (diff) | |
download | external_llvm-64ed88c6aa3228d623e32347f46651078b00cf54.zip external_llvm-64ed88c6aa3228d623e32347f46651078b00cf54.tar.gz external_llvm-64ed88c6aa3228d623e32347f46651078b00cf54.tar.bz2 |
CMake: Fixed dependencies of .cpp source files on .td and tablegenned
files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59325 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/modules/TableGen.cmake')
-rw-r--r-- | cmake/modules/TableGen.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/modules/TableGen.cmake b/cmake/modules/TableGen.cmake index 6d69e8a..aed6558 100644 --- a/cmake/modules/TableGen.cmake +++ b/cmake/modules/TableGen.cmake @@ -3,9 +3,10 @@ # Adds the name of the generated file to TABLEGEN_OUTPUT. macro(tablegen ofn) + file(GLOB all_tds "*.td") add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${ofn} COMMAND ${LLVM_TABLEGEN} ${ARGN} -I ${CMAKE_CURRENT_SOURCE_DIR} -I ${CMAKE_SOURCE_DIR}/lib/Target -I ${LLVM_MAIN_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/${LLVM_TARGET_DEFINITIONS} -o ${ofn} - DEPENDS tblgen ${CMAKE_CURRENT_SOURCE_DIR}/${LLVM_TARGET_DEFINITIONS} + DEPENDS tblgen ${all_tds} COMMENT "Building ${ofn}..." ) set(TABLEGEN_OUTPUT ${TABLEGEN_OUTPUT} ${CMAKE_CURRENT_BINARY_DIR}/${ofn}) |