mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-01-24 07:41:13 +01:00
only enable metal on apple platforms by default
This commit is contained in:
parent
3cf831d46a
commit
3de2b0325b
@ -103,11 +103,20 @@ if (UNIX AND NOT APPLE)
|
|||||||
option(ENABLE_FERAL_GAMEMODE "Enables Feral Interactive GameMode Support" ON)
|
option(ENABLE_FERAL_GAMEMODE "Enables Feral Interactive GameMode Support" ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (APPLE)
|
||||||
|
set(ENABLE_METAL_DEFAULT ON)
|
||||||
|
else()
|
||||||
|
set(ENABLE_METAL_DEFAULT OFF)
|
||||||
|
endif()
|
||||||
|
|
||||||
option(ENABLE_OPENGL "Enables the OpenGL backend" ON)
|
option(ENABLE_OPENGL "Enables the OpenGL backend" ON)
|
||||||
option(ENABLE_VULKAN "Enables the Vulkan backend" ON)
|
option(ENABLE_VULKAN "Enables the Vulkan backend" ON)
|
||||||
option(ENABLE_METAL "Enables the Metal backend" ON)
|
option(ENABLE_METAL "Enables the Metal backend" $ENABLE_METAL_DEFAULT)
|
||||||
option(ENABLE_DISCORD_RPC "Enables the Discord Rich Presence feature" ON)
|
option(ENABLE_DISCORD_RPC "Enables the Discord Rich Presence feature" ON)
|
||||||
|
|
||||||
|
if (ENABLE_METAL AND NOT APPLE)
|
||||||
|
message(FATAL_ERROR "Metal backend is only supported on Apple platforms")
|
||||||
|
endif()
|
||||||
|
|
||||||
# input backends
|
# input backends
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
|
@ -534,7 +534,6 @@ if(APPLE)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ENABLE_METAL)
|
if(ENABLE_METAL)
|
||||||
if(APPLE)
|
|
||||||
target_sources(CemuCafe PRIVATE
|
target_sources(CemuCafe PRIVATE
|
||||||
HW/Latte/Renderer/Metal/MetalRenderer.cpp
|
HW/Latte/Renderer/Metal/MetalRenderer.cpp
|
||||||
HW/Latte/Renderer/Metal/MetalRenderer.h
|
HW/Latte/Renderer/Metal/MetalRenderer.h
|
||||||
@ -577,9 +576,6 @@ if(ENABLE_METAL)
|
|||||||
# "-framework Metal"
|
# "-framework Metal"
|
||||||
# "-framework QuartzCore"
|
# "-framework QuartzCore"
|
||||||
#)
|
#)
|
||||||
else()
|
|
||||||
message(FATAL_ERROR "Metal is only supported on macOS")
|
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set_property(TARGET CemuCafe PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
set_property(TARGET CemuCafe PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user