Avoid showing the "more warnings" option for MSVC

This commit is contained in:
ISSOtm
2026-03-09 01:50:45 -04:00
committed by Rangi
parent aea39ec8c8
commit 3d35457eeb

View File

@@ -20,8 +20,9 @@ if(srcdir STREQUAL bindir)
message(FATAL_ERROR "Terminating configuration")
endif()
option(SANITIZERS "Build with sanitizers enabled" OFF) # Ignored on MSVC
option(MORE_WARNINGS "Turn on more warnings" OFF) # Ignored on MSVC
include(CMakeDependentOption)
option(SANITIZERS "Build with sanitizers enabled" OFF)
cmake_dependent_option(MORE_WARNINGS "Turn on more warnings" OFF !MSVC OFF)
if(MSVC)
# MSVC's own standard library triggers warning C5105,