From 25fd38d6d237947bd3a6b04e44924d3d40a880fa Mon Sep 17 00:00:00 2001 From: PengZheng Date: Thu, 25 Apr 2024 15:49:11 +0800 Subject: [PATCH] Suppress all gcc warnings for civetweb on macOS. --- cmake/Findcivetweb.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/Findcivetweb.cmake b/cmake/Findcivetweb.cmake index 6cc6546ad..00bc77e90 100644 --- a/cmake/Findcivetweb.cmake +++ b/cmake/Findcivetweb.cmake @@ -21,7 +21,7 @@ if (NOT civetweb_FOUND) set(CIVETWEB_ENABLE_WEBSOCKETS TRUE CACHE BOOL "" FORCE) set(CIVETWEB_BUILD_TESTING FALSE CACHE BOOL "" FORCE) set(BUILD_SHARED_LIBS TRUE CACHE BOOL "" FORCE) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-atomic-implicit-seq-cst -Wno-alloca -Wno-cast-align -Wno-undef -Wno-date-time") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-atomic-implicit-seq-cst -Wno-error") FetchContent_Declare( civetweb GIT_REPOSITORY https://github.com/civetweb/civetweb.git