[cmake] fixes for XCode when having languages other than C/C++

Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
lizzie
2026-03-24 23:04:39 +00:00
parent f0d77e86e3
commit 7b50ca91d9
16 changed files with 88 additions and 80 deletions
+4 -2
View File
@@ -225,8 +225,10 @@ else()
endif()
if(CXX_CLANG)
target_compile_options(common PRIVATE -fsized-deallocation
-Werror=unreachable-code-aggressive)
target_compile_options(common PRIVATE
$<$<COMPILE_LANGUAGE:C,CXX>:-fsized-deallocation>
$<$<COMPILE_LANGUAGE:C,CXX>:-Werror=unreachable-code-aggressive>
)
target_compile_definitions(
common
PRIVATE