mirror of
https://github.com/gbdev/rgbds.git
synced 2026-03-25 14:23:04 +00:00
Avoid showing the "more warnings" option for MSVC
This commit is contained in:
@@ -20,8 +20,9 @@ if(srcdir STREQUAL bindir)
|
|||||||
message(FATAL_ERROR "Terminating configuration")
|
message(FATAL_ERROR "Terminating configuration")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
option(SANITIZERS "Build with sanitizers enabled" OFF) # Ignored on MSVC
|
include(CMakeDependentOption)
|
||||||
option(MORE_WARNINGS "Turn on more warnings" OFF) # Ignored on MSVC
|
option(SANITIZERS "Build with sanitizers enabled" OFF)
|
||||||
|
cmake_dependent_option(MORE_WARNINGS "Turn on more warnings" OFF !MSVC OFF)
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
# MSVC's own standard library triggers warning C5105,
|
# MSVC's own standard library triggers warning C5105,
|
||||||
|
|||||||
Reference in New Issue
Block a user