Skip to content

Commit 92d0677

Browse files
committed
Fix build with shared libraries
With `-DBUILD_SHARED_LIBS=ON`, the command line option gets defined twice because the source file is included twice, once as part of the library, once directly in the binary. Fix this by adding source files only to the library, not to the binary.
1 parent c0609a6 commit 92d0677

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ if (llvm_dialects_is_in_llvm_build_tree)
102102
add_tablegen(llvm-dialects-tblgen LLVM_DIALECTS
103103
DESTINATION "${LLVM_TOOLS_INSTALL_DIR}"
104104
EXPORT LLVM
105-
${LLVM_DIALECTS_TABLEGEN_SOURCES}
106105
)
107106
if(CMAKE_CROSSCOMPILING)
108107
set(LLVM_DIALECTS_TABLEGEN_EXE_HOST "${LLVM_DIALECTS_TABLEGEN_EXE}" CACHE

0 commit comments

Comments
 (0)