Skip to content

Commit

Permalink
[#347] Link to libatomic on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
jesperpedersen committed Jan 4, 2023
1 parent bf2445a commit dd580f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
14 changes: 7 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@ else ()
message(FATAL_ERROR "rst2man needed")
endif()

find_package(Libatomic)
if (LIBATOMIC_FOUND)
message(STATUS "libatomic found")
else ()
message(FATAL_ERROR "libatomic needed")
endif()

if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
find_package(Libatomic)
if (LIBATOMIC_FOUND)
message(STATUS "libatomic found")
else ()
message(FATAL_ERROR "libatomic needed")
endif()

find_package(Systemd)
if (SYSTEMD_FOUND)
message(STATUS "systemd found")
Expand Down
1 change: 0 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ else()
link_libraries(
${LIBEV_LIBRARIES}
${OPENSSL_LIBRARIES}
${LIBATOMIC_LIBRARY}
)
endif()

Expand Down

0 comments on commit dd580f7

Please sign in to comment.