fix atomic library to only fire off for clang

This commit is contained in:
Riccardo Spagni 2016-07-20 14:25:59 +02:00
parent 39f7fad71d
commit 48e14ef66c
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -462,9 +462,11 @@ endif()
list(APPEND EXTRA_LIBRARIES ${CMAKE_DL_LIBS}) list(APPEND EXTRA_LIBRARIES ${CMAKE_DL_LIBS})
if(NOT MINGW AND NOT APPLE) if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
find_library(ATOMIC atomic) if(NOT MINGW AND NOT APPLE)
list(APPEND EXTRA_LIBRARIES ${ATOMIC}) find_library(ATOMIC atomic)
list(APPEND EXTRA_LIBRARIES ${ATOMIC})
endif()
endif() endif()
include(version.cmake) include(version.cmake)