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