diff --git a/CMakeLists.txt b/CMakeLists.txt index 408ff6c2..fcf41b5c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,7 +38,7 @@ include(GNUInstallDirs) include(CMakeDependentOption) option(SANITIZERS "Build with sanitizers enabled" OFF) -cmake_dependent_option(MORE_WARNINGS "Turn on more warnings" OFF !MSVC OFF) +cmake_dependent_option(MORE_WARNINGS "Turn on more warnings" OFF "NOT MSVC" OFF) if(MSVC) add_compile_options(