diff options
Diffstat (limited to 'ports/protobuf')
| -rw-r--r-- | ports/protobuf/portfile.cmake | 6 | ||||
| -rw-r--r-- | ports/protobuf/vcpkg.json | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/ports/protobuf/portfile.cmake b/ports/protobuf/portfile.cmake index a86c2d8a0..939e37096 100644 --- a/ports/protobuf/portfile.cmake +++ b/ports/protobuf/portfile.cmake @@ -88,6 +88,12 @@ vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/share/${PORT}/protobuf-config.cmake "if(protobuf_MODULE_COMPATIBLE)" "if(ON)" ) +if(NOT protobuf_BUILD_LIBPROTOC) + vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/share/${PORT}/protobuf-module.cmake + "_protobuf_find_libraries(Protobuf_PROTOC protoc)" + "" + ) +endif() if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") protobuf_try_remove_recurse_wait(${CURRENT_PACKAGES_DIR}/bin) diff --git a/ports/protobuf/vcpkg.json b/ports/protobuf/vcpkg.json index 2224b2465..5808add91 100644 --- a/ports/protobuf/vcpkg.json +++ b/ports/protobuf/vcpkg.json @@ -1,6 +1,7 @@ { "name": "protobuf", "version-semver": "3.15.8", + "port-version": 1, "description": "Protocol Buffers - Google's data interchange format", "homepage": "https://github.com/protocolbuffers/protobuf", "dependencies": [ |
