From a8dfda856ed8521f6d53750e3640a5c6a87cad2f Mon Sep 17 00:00:00 2001 From: scawful Date: Fri, 10 Oct 2025 02:25:41 -0400 Subject: [PATCH] chore: Update CMake configuration for Windows compatibility - Added a preprocessor directive to undefine the DWORD macro in CMake configuration for both CI and release workflows, ensuring compatibility with protobuf generated code. - This change addresses potential compilation issues when using gRPC and protobuf in a Windows environment. --- .github/workflows/ci.yml | 1 + .github/workflows/release.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 57738d4a..7440c737 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -224,6 +224,7 @@ jobs: -DVCPKG_TARGET_TRIPLET=x64-windows-static ` -DVCPKG_MANIFEST_MODE=ON ` -DVCPKG_INSTALL_OPTIONS="--debug" ` + -DCMAKE_CXX_FLAGS="/Dgoogle_protobuf_undef_DWORD=1" ` -DYAZE_BUILD_TESTS=ON ` -DYAZE_ENABLE_ROM_TESTS=OFF 2>&1 | Tee-Object -FilePath cmake_config.log diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 38842bee..8367793f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -209,6 +209,7 @@ jobs: -DCMAKE_TOOLCHAIN_FILE="$vcpkgToolchain" ` -DVCPKG_TARGET_TRIPLET=x64-windows-static ` -DVCPKG_MANIFEST_MODE=ON ` + -DCMAKE_CXX_FLAGS="/Dgoogle_protobuf_undef_DWORD=1" ` -DYAZE_BUILD_TESTS=OFF 2>&1 | Tee-Object -FilePath cmake_config.log if ($LASTEXITCODE -ne 0) {