Skip to content

Commit

Permalink
Make clang-cl a lot quieter with warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhbell committed Jan 5, 2025
1 parent bb16672 commit 5df9563
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,13 @@ if (NOT TEQP_NO_TEQPCPP)

target_compile_definitions(teqpcpp PUBLIC -DTEQP_MULTIPRECISION_ENABLED)

if (WIN32)
target_compile_options(teqpcpp PUBLIC
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>,$<CXX_COMPILER_ID:GNU>>:
-Wno-deprecated-anon-enum-enum-conversion -Wno-deprecated-enum-enum-conversion -Wno-parentheses -Wno-c++98-compat -Wno-c++98-compat-pedantic>
$<$<CXX_COMPILER_ID:MSVC>:>)
endif()

# target_compile_options(teqpcpp PRIVATE
# $<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>,$<CXX_COMPILER_ID:GNU>>:
# -Wall -Wno-c++98-compat -Wno-c++98-compat-pedantic>
Expand Down

0 comments on commit 5df9563

Please sign in to comment.