mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-10-09 23:53:28 -04:00
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:
parent
943b73851e
commit
0ca801dffa
1 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue