mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
[protobuf] Fix protoc.exe on non-windows
This commit is contained in:
parent
bb1bb1c94a
commit
bdc430c8ec
@ -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
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user