Skip to content

Commit

Permalink
remove condition to link with libatomic
Browse files Browse the repository at this point in the history
Signed-off-by: YangKeao <[email protected]>
  • Loading branch information
YangKeao committed Jul 3, 2022
1 parent f0743ae commit aedda8a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions contrib/prometheus-cpp-cmake/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ target_link_libraries(core
$<$<AND:$<BOOL:UNIX>,$<NOT:$<BOOL:APPLE>>>:rt>
)

if(HAVE_CXX_LIBATOMIC)
# the exported library config must use libatomic unconditionally
# (the HAVE_CXX_LIBATOMIC variable should not leak into the target config)
target_link_libraries(core PUBLIC atomic)
endif()

target_include_directories(core
PUBLIC
$<BUILD_INTERFACE:${PROMETHEUS_SRC_DIR}/core/include>
Expand Down

0 comments on commit aedda8a

Please sign in to comment.