aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoratkawa7 <atkawa7@yahoo.com>2017-07-07 22:41:34 -0700
committerGitHub <noreply@github.com>2017-07-07 22:41:34 -0700
commit8cd9b24ee41df6b0582e6a98a31c997539c478f8 (patch)
treeaf0132b89429d9c1939db2145ab0d15a10e156a7
parent426df16b57c325928e6d587dc385dc836712a6b1 (diff)
downloadvcpkg-8cd9b24ee41df6b0582e6a98a31c997539c478f8.tar.gz
vcpkg-8cd9b24ee41df6b0582e6a98a31c997539c478f8.zip
[protobuf] Fix protobuf missing semi colons #1409
-rw-r--r--ports/protobuf/portfile.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/ports/protobuf/portfile.cmake b/ports/protobuf/portfile.cmake
index 52574ecee..07b7ea3aa 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)