[PATCH] D30656: CMake: Don't install llvm-tblgen twice
Tom Stellard via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 6 07:57:30 PST 2017
tstellar created this revision.
Herald added a subscriber: mgorny.
The add_tablegen macros defines its own install target, and it was also calling
add_llvm_utility which adds another install target.
Configuring with -DLLVM_TOOLS_INSTALL_DIR set to something other than
'bin' along with -DLLVM_INSTALL_UTILS=ON was causing llvm-tablgen
to be installed to two separate directories.
https://reviews.llvm.org/D30656
Files:
cmake/modules/TableGen.cmake
Index: cmake/modules/TableGen.cmake
===================================================================
--- cmake/modules/TableGen.cmake
+++ cmake/modules/TableGen.cmake
@@ -99,7 +99,7 @@
set(LLVM_ENABLE_OBJLIB ON)
endif()
- add_llvm_utility(${target} ${ARGN})
+ add_llvm_executable(${target} DISABLE_LLVM_LINK_LLVM_DYLIB ${ARGN})
set(LLVM_LINK_COMPONENTS ${${target}_OLD_LLVM_LINK_COMPONENTS})
set(${project}_TABLEGEN "${target}" CACHE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30656.90704.patch
Type: text/x-patch
Size: 457 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170306/3e97cdeb/attachment.bin>
More information about the llvm-commits
mailing list