Skip to content

Commit

Permalink
fix: protocol compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
mehah committed Dec 23, 2024
1 parent f6925f8 commit d402573
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vc17/otclient.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -639,18 +639,18 @@
<RunProtoCompile>false</RunProtoCompile>
</PropertyGroup>
<PropertyGroup Condition="'$(RunProtoCompile)'=='true'">
<ProtocPath>$(ProjectDir)vcpkg_installed\$(VcpkgTriplet)\tools\protobuf\protoc</ProtocPath>
<ProtocPath>$(ProjectDir)../vcpkg_installed\$(VcpkgTriplet)\tools\protobuf\protoc</ProtocPath>
<ProtoPath>$(SourcePath)protobuf</ProtoPath>
</PropertyGroup>
<PropertyGroup Condition="'$(RunProtoCompile)'=='false'">
<ProtocPath>$(ProjectDir)vcpkg_installed\$(VcpkgTriplet)\tools\protobuf\protoc</ProtocPath>
<ProtocPath>$(ProjectDir)../vcpkg_installed\$(VcpkgTriplet)\tools\protobuf\protoc</ProtocPath>
<ProtoPath>$(GITHUB_WORKSPACE)\src\protobuf</ProtoPath>
</PropertyGroup>
<ItemGroup>
<ProtoFiles Include="$(ProtoPath)\*.proto" />
</ItemGroup>
<Target Name="ProtoCompile" BeforeTargets="PrepareForBuild" DependsOnTargets="VcpkgInstallManifestDependencies">
<MakeDir Directories="$(ProjectDir)generated" />
<MakeDir Directories="$(ProjectDir)../generated" />
<Exec Command="$(ProtocPath) --proto_path=$(ProtoPath) --cpp_out=generated @(ProtoFiles)" />
<ItemGroup>
<ClCompile Include="generated\%(ProtoFiles.Filename).pb.cc">
Expand Down

0 comments on commit d402573

Please sign in to comment.