diff options
author | Riccardo Spagni <ric@spagni.net> | 2016-07-20 14:25:59 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2016-07-20 14:25:59 +0200 |
commit | 48e14ef66c4ca9300a208f021a5d50142b245351 (patch) | |
tree | 71204f5293d18a0a22a92b1dd0cce59c86c0e9e9 /CMakeLists.txt | |
parent | fix duplicate clang block in cmake (diff) | |
download | monero-48e14ef66c4ca9300a208f021a5d50142b245351.tar.xz |
fix atomic library to only fire off for clang
Diffstat (limited to '')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c5514b221..d421a8774 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -462,9 +462,11 @@ endif() list(APPEND EXTRA_LIBRARIES ${CMAKE_DL_LIBS}) -if(NOT MINGW AND NOT APPLE) - find_library(ATOMIC atomic) - list(APPEND EXTRA_LIBRARIES ${ATOMIC}) +if(CMAKE_C_COMPILER_ID STREQUAL "Clang") + if(NOT MINGW AND NOT APPLE) + find_library(ATOMIC atomic) + list(APPEND EXTRA_LIBRARIES ${ATOMIC}) + endif() endif() include(version.cmake) |