From 24726aaf9aa15ac6563e5ae425cec71a22b58af8 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 15 May 2023 15:37:22 +0200 Subject: cmake: disable -Werror for debug builds --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 053ca9e..af6e9fb 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,7 +1,7 @@ if(MSVC) add_compile_options(/W4 /WX) else() - add_compile_options(-std=c17 -Wpedantic -Wall -Wextra -Werror) + add_compile_options(-std=c17 -Wpedantic -Wall -Wextra $<$>:-Werror>) endif() # Even w/ _POSIX_C_SOURCE=200809L, we still need accept4, pipe2, execvpe, etc., -- cgit v1.2.3