diff --git a/CMakeLists.txt b/CMakeLists.txt index 0b70d209b855d8c9e08054d5328c85c03c3a962e..ae9604a1372ac285c10c7a8392fa64304da802e3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -111,9 +111,15 @@ target_link_libraries(Vivy PRIVATE -fopenmp) if (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang") target_compile_options(Vivy PRIVATE -Weverything - -Wno-c++98-compat + + # Disable some things because we want C++20 and don't constrol some Qt + # generated files... + -Wno-c++98-compat -Wno-c++98-c++11-c++14-c++17-compat-pedantic -Wno-extra-semi-stmt - -Wno-c++98-c++11-c++14-c++17-compat-pedantic + -Wno-redundant-parens + -Wno-padded + -Wno-global-constructors + -Wno-exit-time-destructors ) target_link_libraries(Vivy PRIVATE -fopenmp