mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-12-22 21:27:47 +00:00
cmake: libatomic only needed for 32-bit Clang builds
This commit is contained in:
parent
042db0bd0f
commit
35dc40af42
1 changed files with 3 additions and 5 deletions
|
@ -470,12 +470,10 @@ endif()
|
|||
|
||||
list(APPEND EXTRA_LIBRARIES ${CMAKE_DL_LIBS})
|
||||
|
||||
if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||
if(NOT MINGW AND NOT APPLE)
|
||||
if(CMAKE_C_COMPILER_ID STREQUAL "Clang" AND ARCH_WIDTH EQUAL "32")
|
||||
find_library(ATOMIC atomic)
|
||||
list(APPEND EXTRA_LIBRARIES ${ATOMIC})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
include(version.cmake)
|
||||
|
||||
|
|
Loading…
Reference in a new issue