diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake index e886c46a186..181c72391d8 100644 --- a/cmake/modules/AddLLVM.cmake +++ b/cmake/modules/AddLLVM.cmake @@ -680,7 +680,9 @@ macro(add_llvm_library name) elseif(ARG_BUILDTREE_ONLY) set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS_BUILDTREE_ONLY ${name}) else() - if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY OR ${name} STREQUAL "LTO" OR + if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY OR + ${name} STREQUAL "LTO" OR + ${name} STREQUAL "LLVM-C" OR ${name} STREQUAL "Remarks" OR (LLVM_LINK_LLVM_DYLIB AND ${name} STREQUAL "LLVM"))