Skip to content
Snippets Groups Projects
Commit 932c2573 authored by Martin Wölzer's avatar Martin Wölzer
Browse files

cmake/compiler_flags.cmake: removed clang-warning Wrange-loop-analysis for clang <10

parent ed86da62
No related branches found
No related tags found
1 merge request!22Add support for option-container
......@@ -34,6 +34,10 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
set(libClaPP_TEST_CXX_PEDANTIC_COMPILE_OPTIONS ${libClaPP_CXX_PEDANTIC_COMPILE_OPTIONS})
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
list(APPEND libClaPP_CXX_PEDANTIC_COMPILE_OPTIONS -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-padded -Werror -pedantic-errors)
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "10.0.0")
#before clang-10, it issues a warning if a range-based-for loop (of const ref) is used.
list(APPEND libClaPP_CXX_PEDANTIC_COMPILE_OPTIONS -Wno-range-loop-analysis)
endif()
set(libClaPP_TEST_CXX_PEDANTIC_COMPILE_OPTIONS ${libClaPP_CXX_PEDANTIC_COMPILE_OPTIONS})
list(APPEND libClaPP_TEST_CXX_PEDANTIC_COMPILE_OPTIONS -Wno-global-constructors)
endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment