aboutsummaryrefslogtreecommitdiff
path: root/src/core/CMakeLists.txt
diff options
context:
space:
mode:
authorlizzie <lizzie@eden-emu.dev>2026-03-26 04:46:43 +0100
committercrueter <crueter@eden-emu.dev>2026-03-26 04:46:43 +0100
commit9cb700165634a271437abed723a53888eeb6be9c (patch)
treeb398a3765217901c0969147b69fa36d462a9aaff /src/core/CMakeLists.txt
parentf0d77e86e34cde3813f7b1dbfc4d1a9e8940b21b (diff)
[cmake] fixes for XCode when having languages other than C/C++ (#3772)
Signed-off-by: lizzie <lizzie@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3772 Reviewed-by: crueter <crueter@eden-emu.dev> Co-authored-by: lizzie <lizzie@eden-emu.dev> Co-committed-by: lizzie <lizzie@eden-emu.dev>
Diffstat (limited to 'src/core/CMakeLists.txt')
-rw-r--r--src/core/CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index 7566372b51..08a2d0e2db 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -1195,13 +1195,13 @@ if (MSVC)
)
else()
target_compile_options(core PRIVATE
- -Werror=conversion
- -Wno-sign-conversion
- -Wno-cast-function-type
+ $<$<COMPILE_LANGUAGE:C,CXX>:-Werror=conversion>
+ $<$<COMPILE_LANGUAGE:C,CXX>:-Wno-sign-conversion>
+ $<$<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)
- target_compile_options(core PRIVATE -Wno-cast-function-type-mismatch)
+ target_compile_options(core PRIVATE $<$<COMPILE_LANGUAGE:C,CXX>:-Wno-cast-function-type-mismatch>)
endif()
endif()