mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-15 04:18:05 +08:00
[protobuf] Fix protoc.exe on non-windows
This commit is contained in:
parent
bb1bb1c94a
commit
bdc430c8ec
@ -1,5 +1,5 @@
|
|||||||
Source: protobuf
|
Source: protobuf
|
||||||
Version: 3.6.1.3
|
Version: 3.6.1.3-1
|
||||||
Description: Protocol Buffers - Google's data interchange format
|
Description: Protocol Buffers - Google's data interchange format
|
||||||
|
|
||||||
Feature: zlib
|
Feature: zlib
|
||||||
|
@ -106,9 +106,12 @@ if(CMAKE_HOST_WIN32)
|
|||||||
protobuf_try_remove_recurse_wait(${CURRENT_PACKAGES_DIR}/debug/bin/protoc.exe)
|
protobuf_try_remove_recurse_wait(${CURRENT_PACKAGES_DIR}/debug/bin/protoc.exe)
|
||||||
endif()
|
endif()
|
||||||
else()
|
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)
|
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)
|
protobuf_try_remove_recurse_wait(${CURRENT_PACKAGES_DIR}/bin)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user