mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-27 10:52:16 -04:00
Ideally CMAKE_OSX_ARCHITECTURES should not be set automatically within the project but should exclusively be a cache or environment variable provided by the developer. This would also match the requirement mentioned by the CMake documentation that the value should be set before the first project() call. If this variable is not set, the Xcode generator would default to the native platform of the host, but the buildspec system as well as the "add_obs_plugin" function need a local "architecture" to work, so use "CMAKE_HOST_SYSTEM_PROCESSOR" instead if CMAKE_OSX_ARCHITECTURES was not provided.