From e41abdb9076f351acb01bf73900e821334850b06 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 11 Jul 2016 15:27:48 +1000 Subject: CMake: suppressing indentation warning for extern --- extern/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'extern') diff --git a/extern/CMakeLists.txt b/extern/CMakeLists.txt index 58e0c68148b..b046e9626b6 100644 --- a/extern/CMakeLists.txt +++ b/extern/CMakeLists.txt @@ -29,6 +29,14 @@ add_subdirectory(curve_fit_nd) # Otherwise we get warnings here that we cant fix in external projects remove_strict_flags() +# Not a strict flag, but noisy for code we don't maintain +if(CMAKE_COMPILER_IS_GNUCC) + remove_cc_flag( + "-Wmisleading-indentation" + ) +endif() + + add_subdirectory(rangetree) add_subdirectory(wcwidth) -- cgit v1.2.3