diff options
Diffstat (limited to 'misc/cpp-mcp/files')
-rw-r--r-- | misc/cpp-mcp/files/patch-CMakeLists.txt | 12 | ||||
-rw-r--r-- | misc/cpp-mcp/files/patch-src_CMakeLists.txt | 17 |
2 files changed, 29 insertions, 0 deletions
diff --git a/misc/cpp-mcp/files/patch-CMakeLists.txt b/misc/cpp-mcp/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..1c9f239fbece --- /dev/null +++ b/misc/cpp-mcp/files/patch-CMakeLists.txt @@ -0,0 +1,12 @@ +--- CMakeLists.txt.orig 2025-08-28 05:34:14 UTC ++++ CMakeLists.txt +@@ -46,7 +46,9 @@ add_subdirectory(src) + add_subdirectory(src) + + # Add examples ++if (CPP_MCP_BUILD_EXAMPLES) + add_subdirectory(examples) ++endif() + + # Add test directory + option(MCP_BUILD_TESTS "Build the tests" OFF) diff --git a/misc/cpp-mcp/files/patch-src_CMakeLists.txt b/misc/cpp-mcp/files/patch-src_CMakeLists.txt new file mode 100644 index 000000000000..5c0e3ca7398f --- /dev/null +++ b/misc/cpp-mcp/files/patch-src_CMakeLists.txt @@ -0,0 +1,17 @@ +--- src/CMakeLists.txt.orig 2025-05-24 06:53:57 UTC ++++ src/CMakeLists.txt +@@ -1,6 +1,6 @@ set(TARGET mcp) + set(TARGET mcp) + +-add_library(${TARGET} STATIC ++add_library(${TARGET} + ../include/mcp_client.h + mcp_message.cpp + ../include/mcp_message.h +@@ -22,3 +22,6 @@ endif() + if(OPENSSL_FOUND) + target_link_libraries(${TARGET} PUBLIC ${OPENSSL_LIBRARIES}) + endif() ++ ++install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../include/. DESTINATION include/mcp) ++install(TARGETS ${TARGET} DESTINATION lib) |