mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-28 17:42:28 +08:00
cmake: Enable Swift language on macOS
This commit is contained in:
@@ -9,6 +9,8 @@ if(NOT XCODE)
|
||||
message(FATAL_ERROR "Building OBS Studio on macOS requires Xcode generator.")
|
||||
endif()
|
||||
|
||||
enable_language(Swift)
|
||||
|
||||
include(compiler_common)
|
||||
|
||||
add_compile_options("$<$<NOT:$<COMPILE_LANGUAGE:Swift>>:-fopenmp-simd>")
|
||||
|
||||
@@ -15,8 +15,6 @@ foreach(_uuid IN ITEMS VIRTUALCAM_DEVICE_UUID VIRTUALCAM_SOURCE_UUID VIRTUALCAM_
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
enable_language(Swift)
|
||||
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET 13.0)
|
||||
|
||||
add_executable(mac-camera-extension)
|
||||
|
||||
Reference in New Issue
Block a user