llvm.org GIT mirror llvm / 66aa9b1
CMake: Don't use copy_if_different for TableGen output, because it does not work with IDE targets git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79732 91177308-0d34-0410-b5e6-96231b3b80d8 Douglas Gregor 11 years ago
1 changed file(s) with 2 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
55 file(GLOB local_tds "*.td")
66 file(GLOB_RECURSE global_tds "${LLVM_MAIN_SRC_DIR}/include/llvm/*.td")
77
8 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${ofn}.tmp
8 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${ofn}
99 COMMAND ${LLVM_TABLEGEN_EXE} ${ARGN} -I ${CMAKE_CURRENT_SOURCE_DIR}
1010 -I ${LLVM_MAIN_SRC_DIR}/lib/Target -I ${LLVM_MAIN_INCLUDE_DIR}
1111 ${CMAKE_CURRENT_SOURCE_DIR}/${LLVM_TARGET_DEFINITIONS}
12 -o ${CMAKE_CURRENT_BINARY_DIR}/${ofn}.tmp
12 -o ${CMAKE_CURRENT_BINARY_DIR}/${ofn}
1313 DEPENDS tblgen ${local_tds} ${global_tds}
14 COMMENT "Building ${ofn}.tmp..."
15 )
16 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${ofn}
17 COMMAND ${CMAKE_COMMAND} -E copy_if_different
18 ${CMAKE_CURRENT_BINARY_DIR}/${ofn}.tmp ${CMAKE_CURRENT_BINARY_DIR}/${ofn}
19 DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${ofn}.tmp
2014 COMMENT "Building ${ofn}..."
2115 )
2216 set(TABLEGEN_OUTPUT ${TABLEGEN_OUTPUT} ${CMAKE_CURRENT_BINARY_DIR}/${ofn})