From 470b0c8eb049f8824bdbdb7f8fdaeeafe0a3cdc5 Mon Sep 17 00:00:00 2001 From: Jeremy <51220084+jeremy-rifkin@users.noreply.github.com> Date: Thu, 23 May 2024 22:28:02 -0500 Subject: [PATCH] Only use -Wpedantic during a -Werror build --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 31ed78b..9c699e7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -239,7 +239,7 @@ target_include_directories( set( warning_options - $<$>:-Wall -Wextra -Werror=return-type -Wundef -Wpedantic> + $<$>:-Wall -Wextra -Werror=return-type -Wundef> $<$:-Wuseless-cast -Wmaybe-uninitialized> $<$:/W4 /WX /permissive-> ) @@ -248,7 +248,7 @@ if(CPPTRACE_WERROR_BUILD) set( warning_options ${warning_options} - $<$>:-Werror> + $<$>:-Werror -Wpedantic> $<$:/WX> ) endif()