Skip to content

Commit 7a0b986

Browse files
added atomic to library linker for gcc
1 parent a23a03e commit 7a0b986

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

framework/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ include(GNUInstallDirs)
7272
add_subdirectory(modules)
7373
add_subdirectory(resources)
7474

75+
# Needed for C11 Atomics on GCC
76+
if(UNIX AND NOT APPLE AND NOT ANDROID)
77+
target_link_libraries(${PROJECT_NAME} PUBLIC atomic)
78+
endif()
79+
7580

7681
############################################################################
7782
# Performance library dependencies

0 commit comments

Comments
 (0)