cmake: Enable Swift language on macOS

This commit is contained in:
Nerixyz
2026-03-23 13:01:34 +01:00
committed by Ryan Foster
parent 714caa7aa3
commit b8f7a1e3b8
2 changed files with 2 additions and 2 deletions
+2
View File
@@ -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)