From f07f120e5d831323c70fd6c99690712cc430f371 Mon Sep 17 00:00:00 2001 From: redfish Date: Tue, 12 Jul 2016 00:25:56 -0400 Subject: [PATCH] cmake: don't try to link with atomic on Apple -latomic is necessary with Clang on Linux, but apparently, on OSX it's not found. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 36506851..0525c190 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -460,7 +460,7 @@ endif() list(APPEND EXTRA_LIBRARIES ${CMAKE_DL_LIBS}) -if(NOT MINGW) +if(NOT MINGW AND NOT APPLE) find_library(ATOMIC atomic) list(APPEND EXTRA_LIBRARIES ${ATOMIC}) endif()