Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

Code no longer builds "unsupported option for target"

A short while ago, I added:

set(CMAKE_OSX_DEPLOYMENT_TARGET 13.0 CACHE STRING "Minimum operating system version for deployment")

to my top level CMake file.

The code would not compile. So I removed the line and deleted the CMake cache and tried to rebuild.

And for my pains I got this:

c++: error: unsupported option '-mavx' for target 'arm64-apple-darwin24.4.0'
c++: error: unsupported option '-mavx2' for target 'arm64-apple-darwin24.4.0'
c++: error: unsupported option '-mfma' for target 'arm64-apple-darwin24.4.0'
c++: error: unsupported option '-mssse3' for target 'arm64-apple-darwin24.4.0'

This code was all compiled just fine up until this change, but now it just won't do so.

Help!!! David

Accepted Answer

It turns out that it may have been an update to XCode that caused the errors to be reported when none were previously.

I just hadn't tried to build the code since before the update.

So this can be ignored <BLUSH>

David

Code no longer builds "unsupported option for target"
 
 
Q