mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-02-05 20:12:13 -05:00
Due to swig using a hardcoded swig library path in self-compiled variants, we need to pass our custom swig library path with every invocation of swig on macOS. CMake's `add_custom_command` function does _not_ inherit the environment variables used during configuration, hence why it needs to be passed explicitly on invocation. Usage of CMake's "-E env" command module should allow for cross-platform compatible invocation.