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:
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@@ -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
|
||||
|
||||
|
||||
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user