Index: lldb/source/Plugins/ObjectFile/PECOFF/CMakeLists.txt =================================================================== --- lldb/source/Plugins/ObjectFile/PECOFF/CMakeLists.txt +++ lldb/source/Plugins/ObjectFile/PECOFF/CMakeLists.txt @@ -1,3 +1,9 @@ +if(WIN32) + set(DBGHELP_LINK_FILES dbghelp) +else() + set(DBGHELP_LINK_FILES "") +endif() + add_lldb_library(lldbPluginObjectFilePECOFF PLUGIN ObjectFilePECOFF.cpp WindowsMiniDump.cpp @@ -7,6 +13,7 @@ lldbHost lldbSymbol lldbTarget + ${DBGHELP_LINK_FILES} LINK_COMPONENTS BinaryFormat Support