diff --git a/llvm/tools/dsymutil/CMakeLists.txt b/llvm/tools/dsymutil/CMakeLists.txt --- a/llvm/tools/dsymutil/CMakeLists.txt +++ b/llvm/tools/dsymutil/CMakeLists.txt @@ -38,3 +38,6 @@ if(APPLE) target_link_libraries(dsymutil PRIVATE "-framework CoreFoundation") endif(APPLE) + +get_property(system_libs TARGET LLVMSupport PROPERTY LLVM_SYSTEM_LIBS) +target_link_libraries(dsymutil PRIVATE ${system_libs})