[cmake] Disable no-cast-function-type-mismatch on Clang 19

Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
crueter 2026-06-01 14:10:59 -04:00
parent bd2d344040
commit fd814f4cff
No known key found for this signature in database
GPG key ID: 425ACD2D4830EBC6

View file

@ -1200,7 +1200,7 @@ else()
$<$<COMPILE_LANGUAGE:C,CXX>:-Wno-cast-function-type>
$<$<CXX_COMPILER_ID:Clang>:-fsized-deallocation>)
# pre-clang19 will spam with "OH DID YOU MEAN THIS?" otherwise...
if (CXX_CLANG AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19)
if (CXX_CLANG AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 19)
target_compile_options(core PRIVATE $<$<COMPILE_LANGUAGE:C,CXX>:-Wno-cast-function-type-mismatch>)
endif()
endif()