CMakeLists: Enable Objective-C and Objective-C++ when compiling for macOS

This commit is contained in:
OatmealDome 2022-09-02 17:39:04 -04:00
parent 889b67f8bb
commit 428a2c63b0

View file

@ -56,6 +56,10 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION
add_compile_definitions(FMT_CONSTEVAL=)
endif()
if (APPLE)
enable_language(OBJC OBJCXX)
endif()
option(ENABLE_OPENGL "Enables the OpenGL backend" ON)
option(ENABLE_VULKAN "Enables the Vulkan backend" ON)
option(ENABLE_DISCORD_RPC "Enables the Discord Rich Presence feature" ON)