Skip to content
Snippets Groups Projects
Commit 4592663f authored by Amin Bandali's avatar Amin Bandali Committed by Adrien Béraud
Browse files

build/cmake: Link libatomic where needed for 64-bit atomic ops.

Link against libatomic also on architectures that need it for 64-bit
atomic operations.  ARM EABI (armel) and little-endian MIPS (mipsel)
are two such architectures.
parent 4c1c6cf8
Branches
No related tags found
No related merge requests found
...@@ -47,7 +47,9 @@ set (CMAKE_CXX_STANDARD 17) ...@@ -47,7 +47,9 @@ set (CMAKE_CXX_STANDARD 17)
set (CMAKE_CXX_STANDARD_REQUIRED on) set (CMAKE_CXX_STANDARD_REQUIRED on)
# Dependencies # Dependencies
if (NOT HAVE_CXX_ATOMICS_WITHOUT_LIB) if (NOT HAVE_CXX_ATOMICS_WITHOUT_LIB
# For ARM EABI (armel), little-endian MIPS (mipsel), etc.
OR NOT HAVE_CXX_ATOMICS64_WITHOUT_LIB)
link_libraries (atomic) link_libraries (atomic)
endif () endif ()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment