Skip to content

Commit b9f2ff2

Browse files
committed
CDRIVER-2249 don't set maintainer flags with MSVC
MSVC accepts "-Wall" but it results in thousands of spurious warnings. It doesn't accept any other GCC-style flags like "-Wformat", so CMake wastes time checking them all. To solve both problems, just skip the maintainer flags configuration with MSVC.
1 parent 40e0285 commit b9f2ff2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/cmake/MaintainerFlags.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if (ENABLE_MAINTAINER_FLAGS)
1+
if (ENABLE_MAINTAINER_FLAGS AND NOT MSVC)
22
include(CheckCCompilerFlag)
33

44
message(STATUS "Detecting available maintainer flags")

0 commit comments

Comments
 (0)