summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2013-09-10 18:35:14 +0000
committerHans Wennborg <hans@hanshq.net>2013-09-10 18:35:14 +0000
commit4f5cfba4d5734f65cfb63ea848e93c2c5f566427 (patch)
tree96d393b81890f056f3b8729a5fe9b0fb9d8b1e25 /cmake
parent2c46deb1d07f4588ee70059cdd4c7145f81bc8e8 (diff)
downloadexternal_llvm-4f5cfba4d5734f65cfb63ea848e93c2c5f566427.zip
external_llvm-4f5cfba4d5734f65cfb63ea848e93c2c5f566427.tar.gz
external_llvm-4f5cfba4d5734f65cfb63ea848e93c2c5f566427.tar.bz2
cmake: Install llvm-tblgen again
It was removed in r189130, but it turns out this makes life hard for folks packaging LLVM and Clang and building the latter based on the LLVM package. Note that this only adds back the LLVM tblgen, and it's obviously not included when LLVM_INSTALL_TOOLCHAIN_ONLY is set. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190419 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/TableGen.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/modules/TableGen.cmake b/cmake/modules/TableGen.cmake
index d315a42..bbd6339 100644
--- a/cmake/modules/TableGen.cmake
+++ b/cmake/modules/TableGen.cmake
@@ -136,4 +136,8 @@ macro(add_tablegen target project)
if( LLVM_ENABLE_THREADS AND HAVE_LIBPTHREAD AND NOT BEOS )
target_link_libraries(${target} pthread)
endif()
+
+ if (${project} STREQUAL LLVM AND NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
+ install(TARGETS ${target} RUNTIME DESTINATION bin)
+ endif()
endmacro()