Files
obs-studio/cmake/macos/simd.cmake
PatTheMav bbeea0972a cmake: Add Xcode component to CMake build framework 3.0
Adds necessary macOS-specific implementation of the framework, focusing
on native Xcode builds.
2023-03-26 18:20:38 -04:00

8 lines
269 B
CMake

# OBS CMake macOS SIMD module
# Enable openmp-simd when compiling for arm64
if(CMAKE_OSX_ARCHITECTURES MATCHES ".*[aA][rR][mM]64e?.*" OR CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64")
set(ARCH_SIMD_FLAGS -fopenmp-simd)
set(ARCH_SIMD_DEFINES SIMDE_ENABLE_OPENMP)
endif()