aboutsummaryrefslogtreecommitdiff
path: root/cmake/modules
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2009-06-27 10:44:33 +0000
committerEd Schouten <ed@FreeBSD.org>2009-06-27 10:44:33 +0000
commitf859468f5a21b6952ab62917777f9fb3bba57003 (patch)
tree9794dc36f22f2a2b3f8063829d8a9b3a7794acc8 /cmake/modules
parentf76359690a7035ad21498f2ba6be6991d3b2032d (diff)
Diffstat (limited to 'cmake/modules')
-rwxr-xr-xcmake/modules/AddLLVM.cmake3
-rw-r--r--cmake/modules/TableGen.cmake2
2 files changed, 5 insertions, 0 deletions
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake
index b196c63e7bee..660bd70003ee 100755
--- a/cmake/modules/AddLLVM.cmake
+++ b/cmake/modules/AddLLVM.cmake
@@ -58,4 +58,7 @@ macro(add_llvm_target target_name)
endif( TABLEGEN_OUTPUT )
include_directories(BEFORE ${CMAKE_CURRENT_BINARY_DIR})
add_llvm_library(LLVM${target_name} ${ARGN} ${TABLEGEN_OUTPUT})
+ if ( TABLEGEN_OUTPUT )
+ add_dependencies(LLVM${target_name} ${target_name}Table_gen)
+ endif (TABLEGEN_OUTPUT)
endmacro(add_llvm_target)
diff --git a/cmake/modules/TableGen.cmake b/cmake/modules/TableGen.cmake
index 16c732b08938..0a96b5514db6 100644
--- a/cmake/modules/TableGen.cmake
+++ b/cmake/modules/TableGen.cmake
@@ -20,4 +20,6 @@ macro(tablegen ofn)
COMMENT "Building ${ofn}..."
)
set(TABLEGEN_OUTPUT ${TABLEGEN_OUTPUT} ${CMAKE_CURRENT_BINARY_DIR}/${ofn})
+ set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${ofn}
+ PROPERTIES GENERATED 1)
endmacro(tablegen)