CMake: Link with -latomic
[src/app-framework-binder.git] / src / CMakeLists.txt
index abfd13e..ab77662 100644 (file)
@@ -1,5 +1,5 @@
 ###########################################################################
-# Copyright (C) 2015-2019 "IoT.bzh"
+# Copyright (C) 2015-2020 "IoT.bzh"
 #
 # author: José Bollo <jose.bollo@iot.bzh>
 #
@@ -88,6 +88,7 @@ SET(AFB_LIB_SOURCES
        afb-context.c
        afb-cred.c
        afb-debug.c
+       afb-error-text.c
        afb-evt.c
        afb-export.c
        afb-fdev.c
@@ -99,6 +100,8 @@ SET(AFB_LIB_SOURCES
        afb-method.c
        afb-monitor.c
        afb-msg-json.c
+       afb-perm.c
+       afb-permission-text.c
        afb-proto-ws.c
        afb-session.c
        afb-socket.c
@@ -169,6 +172,7 @@ TARGET_LINK_LIBRARIES(afbwsc
        ${libsystemd_LDFLAGS}
        ${json-c_LDFLAGS}
        -lpthread
+       -latomic
        -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/export-afbwsc.map
        -Wl,--as-needed
        -Wl,--gc-sections