feat(build): align Windows static builds with vcpkg runtime settings

- Updated CMake configuration to align Windows static builds (MSVC, clang-cl) with vcpkg's /MT runtime.
- Added conditional linking for libprotobuf when YAZE_WITH_GRPC is enabled, enhancing modularity.
- Addressed potential macro conflicts by undefining SendMessage in the conversational agent service files.

Benefits:
- Improves compatibility and reliability of builds on Windows platforms.
- Enhances the flexibility of the build system by conditionally linking libraries based on configuration options.
This commit is contained in:
scawful
2025-10-14 00:12:08 -04:00
parent cafa50b355
commit 55f6ed93bc
4 changed files with 16 additions and 1 deletions

View File

@@ -27,6 +27,10 @@
#include "cli/util/terminal_colors.h"
#include "nlohmann/json.hpp"
#ifdef SendMessage
#undef SendMessage
#endif
ABSL_DECLARE_FLAG(std::string, ai_provider);
namespace yaze {