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/Modules/CheckAtomic.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function(check_working_cxx_atomics64 varname)
endfunction()

# Check for (non-64-bit) atomic operations.
if(MSVC)
if(MSVC OR APPLE) # apple do not need latomic link
set(HAVE_CXX_ATOMICS_WITHOUT_LIB True)
elseif(LLVM_COMPILER_IS_GCC_COMPATIBLE)
# First check if atomics work without the library.
Expand All @@ -74,7 +74,7 @@ elseif(LLVM_COMPILER_IS_GCC_COMPATIBLE)
endif()

# Check for 64 bit atomic operations.
if(MSVC)
if(MSVC OR APPLE) # apple do not need latomic link
set(HAVE_CXX_ATOMICS64_WITHOUT_LIB True)
elseif(LLVM_COMPILER_IS_GCC_COMPATIBLE)
# First check if atomics work without the library.
Expand Down