mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 18:39:07 +08:00
[protobuf] Fix protobuf missing semi colons #1409
This commit is contained in:
parent
426df16b57
commit
8cd9b24ee4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user