We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cce8be3 commit 41362e6Copy full SHA for 41362e6
CMakeLists.txt
@@ -99,6 +99,11 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_
99
list (APPEND C_CXX_WARNING_FLAGS -Wno-misleading-indentation)
100
endif ()
101
102
+# clang-10 added -Wmisleading-indentation as well, skip it too
103
+if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "9")
104
+ list (APPEND C_CXX_WARNING_FLAGS -Wno-misleading-indentation)
105
+endif ()
106
+
107
# Warnings as errors?
108
if (WERROR)
109
list (APPEND C_CXX_WARNING_FLAGS -Werror)
0 commit comments