From 033df1bf19cb374f8537315d38579039a7ab36f9 Mon Sep 17 00:00:00 2001 From: Theo Buehler Date: Sat, 12 Apr 2025 17:13:26 +0200 Subject: Switch to add_compile_options --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 771b2bb..e22a6ae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -131,7 +131,7 @@ add_definitions(-D__END_HIDDEN_DECLS=) set(CMAKE_POSITION_INDEPENDENT_CODE true) if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang") - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-pointer-sign") + add_compile_options(-Wno-pointer-sign) endif() if(WIN32) -- cgit v1.2.3-55-g6feb From 2a63bda5238e4e1d86684f4147e04541bbe75a54 Mon Sep 17 00:00:00 2001 From: Theo Buehler Date: Sat, 12 Apr 2025 17:21:01 +0200 Subject: Drop -fno-common --- CMakeLists.txt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e22a6ae..8437e02 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -72,10 +72,6 @@ endforeach() set(BUILD_NC true) -if(CMAKE_SYSTEM_NAME MATCHES "Darwin") - add_definitions(-fno-common) -endif() - if(CMAKE_SYSTEM_NAME MATCHES "OpenBSD") add_definitions(-DHAVE_ATTRIBUTE__BOUNDED__) add_definitions(-DHAVE_ATTRIBUTE__DEAD__) -- cgit v1.2.3-55-g6feb