build: disable psabi warning with GCC 7.0 and ARM
authorAlexander Alekhin <alexander.a.alekhin@gmail.com>
Sun, 7 Aug 2022 12:46:44 +0000 (15:46 +0300)
committerAlexander Alekhin <alexander.a.alekhin@gmail.com>
Sun, 7 Aug 2022 12:46:44 +0000 (15:46 +0300)
cmake/OpenCVCompilerOptions.cmake

index bbfd8896904181038bfe119a57d278b8950eb5b9..db7b0e1b8c01573b279d396c3e9a30a08e199a6e 100644 (file)
@@ -134,7 +134,7 @@ if(CV_GCC OR CV_CLANG)
   add_extra_compiler_option(-Wshadow)
   add_extra_compiler_option(-Wsign-promo)
   add_extra_compiler_option(-Wuninitialized)
-  if(CV_GCC AND (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 6.0) AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0))
+  if(CV_GCC AND (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 6.0) AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0 OR ARM))
     add_extra_compiler_option(-Wno-psabi)
   endif()
   if(HAVE_CXX11)