Merge pull request #2793

3501ed1f Do not require libatomic on FreeBSD (Vasil Dimov)
This commit is contained in:
Riccardo Spagni 2017-11-25 19:48:12 +02:00
commit 7ae7e5ef93
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -704,7 +704,7 @@ endif()
if(ANDROID) if(ANDROID)
set(ATOMIC libatomic.a) set(ATOMIC libatomic.a)
endif() endif()
if(CMAKE_C_COMPILER_ID STREQUAL "Clang" AND ARCH_WIDTH EQUAL "32" AND NOT IOS) if(CMAKE_C_COMPILER_ID STREQUAL "Clang" AND ARCH_WIDTH EQUAL "32" AND NOT IOS AND NOT FREEBSD)
find_library(ATOMIC atomic) find_library(ATOMIC atomic)
list(APPEND EXTRA_LIBRARIES ${ATOMIC}) list(APPEND EXTRA_LIBRARIES ${ATOMIC})
endif() endif()