From 8cd9b24ee41df6b0582e6a98a31c997539c478f8 Mon Sep 17 00:00:00 2001 From: atkawa7 Date: Fri, 7 Jul 2017 22:41:34 -0700 Subject: [PATCH] [protobuf] Fix protobuf missing semi colons #1409 --- ports/protobuf/portfile.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ports/protobuf/portfile.cmake b/ports/protobuf/portfile.cmake index 52574eceee..07b7ea3aa0 100644 --- a/ports/protobuf/portfile.cmake +++ b/ports/protobuf/portfile.cmake @@ -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)