mirror of
https://github.com/eclipse/upm.git
synced 2025-03-14 20:47:30 +03:00
cmake: Disable -Wno-misleading-indentation with clang-10 onwards
clang also introduced this warning now Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
cce8be3966
commit
41362e6b6f
@ -99,6 +99,11 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_
|
|||||||
list (APPEND C_CXX_WARNING_FLAGS -Wno-misleading-indentation)
|
list (APPEND C_CXX_WARNING_FLAGS -Wno-misleading-indentation)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
# clang-10 added -Wmisleading-indentation as well, skip it too
|
||||||
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "9")
|
||||||
|
list (APPEND C_CXX_WARNING_FLAGS -Wno-misleading-indentation)
|
||||||
|
endif ()
|
||||||
|
|
||||||
# Warnings as errors?
|
# Warnings as errors?
|
||||||
if (WERROR)
|
if (WERROR)
|
||||||
list (APPEND C_CXX_WARNING_FLAGS -Werror)
|
list (APPEND C_CXX_WARNING_FLAGS -Werror)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user