mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 16:14:09 +02:00
Merge pull request #9100 from Icinga/Al2Klimov-patch-4
Put `-latomic` to the other `-l`s
This commit is contained in:
commit
9e39866986
@ -432,10 +432,7 @@ if(NOT MSVC)
|
||||
# ARM settings
|
||||
if("${ARCH}" STREQUAL "arm")
|
||||
check_cxx_source_compiles( "include <atomic>; int main(){ std::atomic<uint_fast64_t> x; x.fetch_add(1); x.sub_add(1); }" CXX_ATOMIC)
|
||||
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -latomic")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -latomic")
|
||||
set(CMAKE_STATIC_LINKER_FLAGS "${CMAKE_STATIC_LINKER_FLAGS} -latomic")
|
||||
link_libraries(atomic)
|
||||
endif()
|
||||
|
||||
else()
|
||||
|
Loading…
x
Reference in New Issue
Block a user