@cryptotaxi247 / netdata-1 / commits / 9a83540b1

Rename nd-mcp on windows (#20404)

Create nd-mcp.exe on windows

Stelios Fragkakis committed Jun 4, 2025 at 03:19 UTC 9a83540b191acf99f053898e3eb97295d26231bf
1 file changed +8 -2
CMakeLists.txt
+8 -2
@@ -3291,9 +3291,15 @@ if(ENABLE_PLUGIN_GO)
3291 DESTINATION usr/libexec/netdata/plugins.d)
3292
3293 # Build and install nd-mcp (stdio-golang bridge) exactly like go.d.plugin
3294 - add_go_target(nd-mcp-target nd-mcp src/web/mcp/bridges/stdio-golang .)
3294 + if (OS_WINDOWS)
3295 + set(ND_MCP_NAME nd-mcp.exe)
3296 + else()
3297 + set(ND_MCP_NAME nd-mcp)
3298 + endif()
3299
3296 - install(PROGRAMS ${CMAKE_BINARY_DIR}/nd-mcp
3300 + add_go_target(nd-mcp-target ${ND_MCP_NAME} src/web/mcp/bridges/stdio-golang .)
3301 + install(PROGRAMS
3302 + ${CMAKE_BINARY_DIR}/${ND_MCP_NAME}
3303 COMPONENT plugin-go
3304 DESTINATION "${BINDIR}")
3305 endif()