opnsense-ports/audio/gogglesmm/files/patch-CMakeLists.txt
Franco Fichtner 84dfcfe2cf */*: sync with upstream
Taken from: FreeBSD
2023-05-03 08:03:48 +02:00

14 lines
515 B
Text

--- CMakeLists.txt.orig 2023-04-23 15:13:49 UTC
+++ CMakeLists.txt
@@ -69,6 +69,11 @@ endif()
add_compile_options(-Og)
endif()
+CHECK_CXX_COMPILER_FLAG(-Wno-inconsistent-missing-override HAS_CXX_NOOVERRIDE)
+if(HAS_CXX_NOOVERRIDE AND NOT CMAKE_BUILD_TYPE MATCHES Debug)
+ add_compile_options(-Wno-inconsistent-missing-override)
+endif()
+
# FIXME Doesn't work on all platforms.
#CHECK_CXX_COMPILER_FLAG(-flto HAS_CXX_OPTIMIZE_LINKTIME)
if(HAS_CXX_OPTIMIZE_LINKTIME AND NOT CMAKE_BUILD_TYPE MATCHES Debug)