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.
This commit is contained in:
parent
19349d7870
commit
f07f120e5d
1 changed files with 1 additions and 1 deletions
|
@ -460,7 +460,7 @@ endif()
|
||||||
|
|
||||||
list(APPEND EXTRA_LIBRARIES ${CMAKE_DL_LIBS})
|
list(APPEND EXTRA_LIBRARIES ${CMAKE_DL_LIBS})
|
||||||
|
|
||||||
if(NOT MINGW)
|
if(NOT MINGW AND NOT APPLE)
|
||||||
find_library(ATOMIC atomic)
|
find_library(ATOMIC atomic)
|
||||||
list(APPEND EXTRA_LIBRARIES ${ATOMIC})
|
list(APPEND EXTRA_LIBRARIES ${ATOMIC})
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in a new issue