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:
@@ -40,6 +40,9 @@ target_link_libraries(yaze PRIVATE
|
||||
absl::flags
|
||||
absl::flags_parse
|
||||
)
|
||||
if(YAZE_WITH_GRPC AND TARGET libprotobuf)
|
||||
target_link_libraries(yaze PRIVATE libprotobuf)
|
||||
endif()
|
||||
|
||||
# Link test support library (yaze_editor needs TestManager)
|
||||
if(TARGET yaze_test_support)
|
||||
|
||||
Reference in New Issue
Block a user