Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmake/protobuf-configure-target.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading