From 1cd1773c7332532a271f355453e33ecb154dfe4a Mon Sep 17 00:00:00 2001
From: Sergey Fedorov <barracuda@macos-powerpc.org>
Date: Wed, 14 Aug 2024 17:42:56 +0800
Subject: [PATCH] Fix CMake setup

diff --git CMakeLists.txt CMakeLists.txt
index fa6393f35..eca403d27 100644
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -67,7 +67,7 @@ endif()
 
 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__FLB_FILENAME__=__FILE__")
 
-if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "armv7l")
+if(${CMAKE_C_COMPILER_ID} STREQUAL "GNU")
   set(CMAKE_C_LINK_FLAGS "${CMAKE_C_LINK_FLAGS} -latomic")
   set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -latomic")
 endif()
