[protobuf] Fix protoc.exe on non-windows

This commit is contained in:
Robert Schumacher 2018-12-18 17:31:37 -08:00
parent bb1bb1c94a
commit bdc430c8ec
2 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,5 @@
Source: protobuf
Version: 3.6.1.3
Version: 3.6.1.3-1
Description: Protocol Buffers - Google's data interchange format
Feature: zlib

View File

@ -106,9 +106,12 @@ if(CMAKE_HOST_WIN32)
protobuf_try_remove_recurse_wait(${CURRENT_PACKAGES_DIR}/debug/bin/protoc.exe)
endif()
else()
file(GLOB EXECUTABLES ${CURRENT_PACKAGES_DIR}/bin/protoc*)
foreach(E IN LISTS EXECUTABLES)
file(INSTALL ${E} DESTINATION ${CURRENT_PACKAGES_DIR}/tools/protobuf
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_WRITE GROUP_EXECUTE WORLD_READ)
endforeach()
protobuf_try_remove_recurse_wait(${CURRENT_PACKAGES_DIR}/debug/bin)
file(INSTALL ${CURRENT_PACKAGES_DIR}/bin/protoc DESTINATION ${CURRENT_PACKAGES_DIR}/tools/protobuf
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_WRITE GROUP_EXECUTE WORLD_READ)
protobuf_try_remove_recurse_wait(${CURRENT_PACKAGES_DIR}/bin)
endif()