diff --git a/lldb/unittests/Protocol/CMakeLists.txt b/lldb/unittests/Protocol/CMakeLists.txt index 801662b0544d8..dd75f4ab1d8b6 100644 --- a/lldb/unittests/Protocol/CMakeLists.txt +++ b/lldb/unittests/Protocol/CMakeLists.txt @@ -1,6 +1,13 @@ -add_lldb_unittest(ProtocolTests +set(PROTOCOL_TEST_SOURCES ProtocolMCPTest.cpp - ProtocolMCPServerTest.cpp +) + +if(NOT WIN32) + list(APPEND PROTOCOL_TEST_SOURCES ProtocolMCPServerTest.cpp) +endif() + +add_lldb_unittest(ProtocolTests + ${PROTOCOL_TEST_SOURCES} LINK_LIBS lldbCore @@ -9,4 +16,4 @@ add_lldb_unittest(ProtocolTests lldbPluginPlatformMacOSX lldbPluginProtocolServerMCP LLVMTestingSupport - ) +)