Supress missing-override warnings in GCC/Clang

Due to OSG's age, I get a lot of these with Clang & XCodee
This commit is contained in:
James Turner 2022-01-10 15:01:58 +00:00
parent 085a71b934
commit 0459406f84

View File

@ -333,6 +333,11 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
if(HAS_NOWARN_UNUSED_TYPEDEFS) if(HAS_NOWARN_UNUSED_TYPEDEFS)
set(WARNING_FLAGS_CXX " ${WARNING_FLAGS_CXX} -Wno-unused-local-typedefs") set(WARNING_FLAGS_CXX " ${WARNING_FLAGS_CXX} -Wno-unused-local-typedefs")
endif() endif()
check_cxx_compiler_flag(-Wno-inconsistent-missing-override HAS_NOWARN_MISSING_OVERRIDE)
if(HAS_NOWARN_MISSING_OVERRIDE)
set(WARNING_FLAGS_CXX " ${WARNING_FLAGS_CXX} -Wno-inconsistent-missing-override")
endif()
endif() endif()
if(WIN32) if(WIN32)