From 06c8cbea59887af3344ad0001c3280b268780266 Mon Sep 17 00:00:00 2001 From: johanmoe <90901545+johanmoe@users.noreply.github.com> Date: Wed, 22 Sep 2021 23:25:29 +0200 Subject: [PATCH] Fix cmake install for protoc component (#8994) Fixes: * RUNTIME DESTINATION for protoc TARGET is not given a COMPONENT option --- cmake/install.cmake | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmake/install.cmake b/cmake/install.cmake index ef5bb1306881..4e1c5deb32e7 100644 --- a/cmake/install.cmake +++ b/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}")