aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArkady Shapkin <arkady.shapkin@gmail.com>2017-09-07 14:52:59 +0300
committerArkady Shapkin <arkady.shapkin@gmail.com>2017-09-07 22:16:39 +0300
commit92e30b10ec5fee6ba86ba766ce0d1685e642e0f1 (patch)
tree45bea034a43f2bc59cf8ba74ddf00703842b0b62
parentd2514bfbc51258a92cc2cbdc61879097b6541c1d (diff)
downloadvcpkg-92e30b10ec5fee6ba86ba766ce0d1685e642e0f1.tar.gz
vcpkg-92e30b10ec5fee6ba86ba766ce0d1685e642e0f1.zip
[protobuf] Fix problem with define PROTOBUF_USE_DLLS
-rw-r--r--ports/protobuf/CONTROL2
-rw-r--r--ports/protobuf/portfile.cmake6
2 files changed, 4 insertions, 4 deletions
diff --git a/ports/protobuf/CONTROL b/ports/protobuf/CONTROL
index 192b57f96..83b672b3f 100644
--- a/ports/protobuf/CONTROL
+++ b/ports/protobuf/CONTROL
@@ -1,4 +1,4 @@
Source: protobuf
-Version: 3.3.0-3
+Version: 3.4.0
Build-Depends: zlib
Description: Protocol Buffers - Google's data interchange format \ No newline at end of file
diff --git a/ports/protobuf/portfile.cmake b/ports/protobuf/portfile.cmake
index 83f9e1e1d..84e2c9b65 100644
--- a/ports/protobuf/portfile.cmake
+++ b/ports/protobuf/portfile.cmake
@@ -92,12 +92,12 @@ else()
protobuf_try_remove_recurse_wait(${CURRENT_PACKAGES_DIR}/debug/bin/protoc.exe)
endif()
-foreach(FILE ${CURRENT_PACKAGES_DIR}/include/google/protobuf/arena.h ${CURRENT_PACKAGES_DIR}/include/google/protobuf/stubs/port.h)
+foreach(FILE ${CURRENT_PACKAGES_DIR}/include/google/protobuf/stubs/platform_macros.h)
file(READ ${FILE} _contents)
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
- string(REPLACE "defined(PROTOBUF_USE_DLLS)" "1" _contents "${_contents}")
+ string(REPLACE "\#endif // GOOGLE_PROTOBUF_PLATFORM_MACROS_H_" "\#define PROTOBUF_USE_DLLS 1\n\#endif // GOOGLE_PROTOBUF_PLATFORM_MACROS_H_" _contents "${_contents}")
else()
- string(REPLACE "defined(PROTOBUF_USE_DLLS)" "0" _contents "${_contents}")
+ string(REPLACE "\#endif // GOOGLE_PROTOBUF_PLATFORM_MACROS_H_" "\#define PROTOBUF_USE_DLLS 0\n\#endif // GOOGLE_PROTOBUF_PLATFORM_MACROS_H_" _contents "${_contents}")
endif()
file(WRITE ${FILE} "${_contents}")
endforeach()