From 5df9563475980dca83f7d5a12bc896e5ed10de1e Mon Sep 17 00:00:00 2001 From: Ian Bell Date: Sun, 5 Jan 2025 15:56:15 -0500 Subject: [PATCH] Make clang-cl a lot quieter with warnings --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 53b6169..ed683ea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -193,6 +193,13 @@ if (NOT TEQP_NO_TEQPCPP) target_compile_definitions(teqpcpp PUBLIC -DTEQP_MULTIPRECISION_ENABLED) + if (WIN32) + target_compile_options(teqpcpp PUBLIC + $<$,$,$>: + -Wno-deprecated-anon-enum-enum-conversion -Wno-deprecated-enum-enum-conversion -Wno-parentheses -Wno-c++98-compat -Wno-c++98-compat-pedantic> + $<$:>) + endif() + # target_compile_options(teqpcpp PRIVATE # $<$,$,$>: # -Wall -Wno-c++98-compat -Wno-c++98-compat-pedantic>