From 60b44c74683caf669257e7413860c082ed1967e0 Mon Sep 17 00:00:00 2001 From: LordGrey Date: Sat, 18 Oct 2025 17:29:38 +0200 Subject: [PATCH] Fix build for rpi1 --- cmake/protobuf-configure-target.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/protobuf-configure-target.cmake b/cmake/protobuf-configure-target.cmake index c67c570565913..171e0a8f0ac6c 100644 --- a/cmake/protobuf-configure-target.cmake +++ b/cmake/protobuf-configure-target.cmake @@ -7,8 +7,8 @@ # Refactors configuration options set on all Protobuf targets function(protobuf_configure_target target) - if(protobuf_LINK_LIBATOMIC) - target_link_libraries(libprotobuf PRIVATE atomic) + if(protobuf_LINK_LIBATOMIC AND "${target}" STREQUAL "libprotobuf") + target_link_libraries("${target}" PRIVATE atomic) endif() target_compile_features("${target}" PUBLIC cxx_std_17)