diff --git a/CMakeLists.txt b/CMakeLists.txt index 4aeb5e3b9..91861c7a7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -517,6 +517,10 @@ if(WITH_VST2 OR WITH_VST3) list(APPEND LIBRARIES ${FREETYPE_LIBRARIES}) list(APPEND INCLUDE_DIRS ${FREETYPE_INCLUDE_DIRS}) endif() + + if(DEFINED ARM) + set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -latomic") + endif() list(APPEND PREPROCESSOR_DEFS WITH_VST