llvm.org GIT mirror llvm / d97ea30
CMake: tablegen: Add .td files under the inlude/llvm directory hierarchy to the list of dependencies. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75510 91177308-0d34-0410-b5e6-96231b3b80d8 Oscar Fuentes 10 years ago
1 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
22 # Adds the name of the generated file to TABLEGEN_OUTPUT.
33
44 macro(tablegen ofn)
5 file(GLOB all_tds "*.td")
5 file(GLOB local_tds "*.td")
6 file(GLOB_RECURSE global_tds "${LLVM_MAIN_SRC_DIR}/include/llvm/*.td")
67
78 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${ofn}.tmp
89 COMMAND ${LLVM_TABLEGEN_EXE} ${ARGN} -I ${CMAKE_CURRENT_SOURCE_DIR}
910 -I ${LLVM_MAIN_SRC_DIR}/lib/Target -I ${LLVM_MAIN_INCLUDE_DIR}
1011 ${CMAKE_CURRENT_SOURCE_DIR}/${LLVM_TARGET_DEFINITIONS}
1112 -o ${CMAKE_CURRENT_BINARY_DIR}/${ofn}.tmp
12 DEPENDS tblgen ${all_tds}
13 DEPENDS tblgen ${local_tds} ${global_tds}
1314 COMMENT "Building ${ofn}.tmp..."
1415 )
1516 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${ofn}