themeeditor: only add -Wsfinae-incomplete if compiler supports it

This flag was added in GCC 16; older versions of GCC don't
accept it and don't produce the warning, so they don't need
any special handling.

Change-Id: I13fcba07cafe0b4133de8b03ede681d2454249e4
This commit is contained in:
Aidan MacDonald 2026-07-19 09:23:36 +01:00
parent 943b73851e
commit 0ca801dffa

View file

@ -122,7 +122,10 @@ target_compile_definitions(RockboxThemeEditor PRIVATE FINDREPLACE_NOLIB)
# This is an issue with the code produced by QT's MOC # This is an issue with the code produced by QT's MOC
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU") if (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
target_compile_options(RockboxThemeEditor PRIVATE -Wsfinae-incomplete=0) check_cxx_compiler_flag(-Wsfinae-incomplete=0 HAVE_SFINAE_INCOMPLETE)
if (HAVE_SFINAE_INCOMPLETE)
target_compile_options(RockboxThemeEditor PRIVATE -Wsfinae-incomplete=0)
endif()
endif() endif()
if(APPLE) if(APPLE)