Skip to content

Commit

Permalink
Fix cmake install for protoc component (#8994)
Browse files Browse the repository at this point in the history
Fixes:
  * RUNTIME DESTINATION for protoc TARGET is not given a COMPONENT option
  • Loading branch information
johanmoe committed Sep 22, 2021
1 parent 58a7c8a commit 06c8cbe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmake/install.cmake
Expand Up @@ -30,9 +30,8 @@ endforeach()

if (protobuf_BUILD_PROTOC_BINARIES)
install(TARGETS protoc EXPORT protobuf-targets
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
BUNDLE DESTINATION ${CMAKE_INSTALL_BINDIR}
COMPONENT protoc)
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT protoc
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 06c8cbe

Please sign in to comment.