Index: tools/lldb-mi/CMakeLists.txt =================================================================== --- tools/lldb-mi/CMakeLists.txt +++ tools/lldb-mi/CMakeLists.txt @@ -7,6 +7,10 @@ list(APPEND extra_libs pthread) endif () +if(CMAKE_SYSTEM_NAME MATCHES "Windows") + list(APPEND extra_libs User32) +endif() + # We need to include the llvm components we depend on manually, as liblldb does # not re-export those. set(LLVM_LINK_COMPONENTS Support)