# CPU\_BASELINE/DISPATCH in MacOS universal builds

**URL:** <https://forum.opencv.org/t/cpu-baseline-dispatch-in-macos-universal-builds/15441>\
**Category:** Uncategorized\
**Tags:** arm, build, apple\
**Created:** [November 7, 2023, 5:59pm UTC](https://forum.opencv.org/t/cpu-baseline-dispatch-in-macos-universal-builds/15441 "2023-11-07T17:59:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![smissan](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@smissan](https://forum.opencv.org/u/smissan)\
**Post date:** [November 7, 2023, 5:59pm UTC](https://forum.opencv.org/t/cpu-baseline-dispatch-in-macos-universal-builds/15441/1 "2023-11-07T17:59:01Z")

</div>

when building openCV on MacOS with universal build (Intel + Apple Silicon) how to specify CPU\_BASELINE and CPU\_DISPATCH separately for each architecture?

I need NEON for ARM  
and AVX/AVX2/AVX512 for Intel

I can build universal fat library for both architectures with all optimizations turned off, but that is obviously not a great solution.

thanks
