mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-04 22:49:32 +03:00
link with libatomic automatically if found
This commit is contained in:
parent
b7d33c2c33
commit
144b4a2d3e
1 changed files with 4 additions and 4 deletions
|
@ -218,10 +218,10 @@ else()
|
||||||
if(MI_LIBRT)
|
if(MI_LIBRT)
|
||||||
list(APPEND mi_libraries ${MI_LIBRT})
|
list(APPEND mi_libraries ${MI_LIBRT})
|
||||||
endif()
|
endif()
|
||||||
endif()
|
find_library(MI_LIBATOMIC atomic)
|
||||||
|
if (MI_LIBATOMIC OR MI_USE_LIBATOMIC)
|
||||||
if (MI_USE_LIBATOMIC)
|
list(APPEND mi_libraries atomic)
|
||||||
list(APPEND mi_libraries atomic)
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
|
|
Loading…
Add table
Reference in a new issue