[protobuf] Fix protobuf missing semi colons #1409

This commit is contained in:
atkawa7 2017-07-07 22:41:34 -07:00 committed by GitHub
parent 426df16b57
commit 8cd9b24ee4

View File

@ -88,11 +88,11 @@ 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})
file(WRITE ${FILE} "${_contents}")
endforeach()
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/protobuf RENAME copyright)