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.
This commit is contained in:
scawful
2025-10-10 02:25:41 -04:00
parent 0bcad79d06
commit a8dfda856e
2 changed files with 2 additions and 0 deletions

View File

@@ -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

View File

@@ -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) {