[protobuf] Hotfix previous change. Fixes #1409.

This commit is contained in:
Robert Schumacher 2017-07-07 23:12:54 -07:00
parent 426df16b57
commit c297ee9848
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
Source: protobuf
Version: 3.3.0-2
Version: 3.3.0-3
Build-Depends: zlib
Description: Protocol Buffers - Google's data interchange format

View File

@ -88,9 +88,9 @@ endif()
foreach(FILE ${CURRENT_PACKAGES_DIR}/include/google/protobuf/arena.h ${CURRENT_PACKAGES_DIR}/include/google/protobuf/stubs/port.h)
file(READ ${FILE} _contents)
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
string(REPLACE "defined(PROTOBUF_USE_DLLS)" "1" _contents ${_contents})
string(REPLACE "defined(PROTOBUF_USE_DLLS)" "1" _contents "${_contents}")
else()
string(REPLACE "defined(PROTOBUF_USE_DLLS)" "0" _contents ${_contents})
string(REPLACE "defined(PROTOBUF_USE_DLLS)" "0" _contents "${_contents}")
endif()
file(WRITE ${FILE} ${_contents})
endforeach()