Skip to content

Commit

Permalink
Fix cmake install on iOS
Browse files Browse the repository at this point in the history
Fixes:
INSTALL TARGETS given no BUNDLE DESTINATION for MACOSX_BUNDLE executable
  • Loading branch information
anton-danielsson authored and acozzette committed Mar 2, 2021
1 parent 9d20395 commit 630028a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/install.cmake
Expand Up @@ -30,7 +30,9 @@ endforeach()

if (protobuf_BUILD_PROTOC_BINARIES)
install(TARGETS protoc EXPORT protobuf-targets
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT protoc)
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
BUNDLE DESTINATION ${CMAKE_INSTALL_BINDIR}
COMPONENT protoc)
if (UNIX AND NOT APPLE)
set_property(TARGET protoc
PROPERTY INSTALL_RPATH "$ORIGIN/../${CMAKE_INSTALL_LIBDIR}")
Expand Down

0 comments on commit 630028a

Please sign in to comment.