cmake: Install llvm-tblgen again
authorHans Wennborg <hans@hanshq.net>
Tue, 10 Sep 2013 18:35:14 +0000 (18:35 +0000)
committerHans Wennborg <hans@hanshq.net>
Tue, 10 Sep 2013 18:35:14 +0000 (18:35 +0000)
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

cmake/modules/TableGen.cmake

index d315a427c0ca265b41c9f4f3a51723fed27987e4..bbd6339ac8cd7d6284bf5f56eb9b3d1a8ec15d92 100644 (file)
@@ -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()