[llvm] r190419 - cmake: Install llvm-tblgen again
Hans Wennborg
hans at hanshq.net
Tue Sep 10 11:35:15 PDT 2013
Author: hans
Date: Tue Sep 10 13:35:14 2013
New Revision: 190419
URL: http://llvm.org/viewvc/llvm-project?rev=190419&view=rev
Log:
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.
Modified:
llvm/trunk/cmake/modules/TableGen.cmake
Modified: llvm/trunk/cmake/modules/TableGen.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/TableGen.cmake?rev=190419&r1=190418&r2=190419&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/TableGen.cmake (original)
+++ llvm/trunk/cmake/modules/TableGen.cmake Tue Sep 10 13:35:14 2013
@@ -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()
More information about the llvm-commits
mailing list