Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
kimwalisch committed Jan 2, 2024
1 parent 8d18af1 commit 80a8a28
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cmake/libatomic.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@ check_cxx_source_compiles("

# Our code requires libatomic to compile
if(NOT atomic64)
find_library(ATOMIC NAMES atomic atomic.so.1 libatomic.so.1)
find_library(LIBATOMIC NAMES atomic atomic.so.1 libatomic.so.1)

if(ATOMIC)
# We have found libatomic, add it to the linker flags
set(LIBATOMIC ${ATOMIC})
if(LIBATOMIC)
message(STATUS "Found libatomic: ${LIBATOMIC}")
else()
# Some package managers like homebrew and macports store the compiler's
Expand Down

0 comments on commit 80a8a28

Please sign in to comment.