Fix cmake install for protoc component (#8994)

Fixes:
  * RUNTIME DESTINATION for protoc TARGET is not given a COMPONENT option
pull/9012/head
johanmoe 3 years ago committed by GitHub
parent 58a7c8ab92
commit 06c8cbea59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      cmake/install.cmake

@ -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}")

Loading…
Cancel
Save