fix cmake syntax

This commit is contained in:
emiyl 2026-04-20 23:25:18 +01:00
parent cf36aaaf3b
commit 5d185dc203

View File

@ -117,10 +117,10 @@ option(ENABLE_DISCORD_RPC "Enables the Discord Rich Presence feature" ON)
if (ENABLE_OPENGL)
set_compile_definitions(ENABLE_OPENGL)
else()
endif()
if (ENABLE_VULKAN)
add_compile_definitions(ENABLE_VULKAN)
else()
endif()
if (ENABLE_METAL AND NOT APPLE)
message(FATAL_ERROR "Metal backend is only supported on Apple platforms")