diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-05-15 15:37:22 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-05-15 15:37:22 +0200 |
commit | 24726aaf9aa15ac6563e5ae425cec71a22b58af8 (patch) | |
tree | d7e785ffe6863f43135fc80ac66684547748f319 /src/CMakeLists.txt | |
parent | rework server-worker communication (diff) | |
download | cimple-24726aaf9aa15ac6563e5ae425cec71a22b58af8.tar.gz cimple-24726aaf9aa15ac6563e5ae425cec71a22b58af8.zip |
cmake: disable -Werror for debug builds
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
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 $<$<NOT:$<CONFIG:Debug>>:-Werror>) endif() # Even w/ _POSIX_C_SOURCE=200809L, we still need accept4, pipe2, execvpe, etc., |