Error on Xcode build: unknown argument: '-index-store-path'

Hello,

I’m trying to build this project on macOS: GitHub - FundamentalFrequency/LMN-3-DAW: LMN-3 DAW

I’ve git cloned it, and then 'cd’ed to the directory and ran '‘cmake -G xcode .’

I then open the created Xcode project, navigate to Product > Scheme and select LMN-3, and try and build.

This is the error I get: “Library ‘atomic’ not found”

This looks like my issue:

I tried setting the target to 10.7 and putting various strings in the compiler field without luck. Then I symlinked my llvm toolchain like so How to change the compiler in XCod… | Apple Developer Forums and that bypassed that error.

Now I get these errors:

/Users/christian/git/LMN-3-DAW/yaml-cpp/src/contrib/graphbuilderadapter.cpp unknown argument: '-index-store-path'

/Users/christian/git/LMN-3-DAW/yaml-cpp/src/contrib/graphbuilderadapter.cpp cannot specify -o when generating multiple output files

I tried setting my C++m compiler to /opt/homebrew/Cellar/llvm/18.1.5/lib/c++ in build settings but getting the same issue.

Thanks!

EDIT:

I set COMPILER_INDEX_STORE_ENABLE=NO by setting “Enable Index While Building Functionality” to No in the GUI and now I’m back to the atomic error.


FIX:

Got this figured out, thanks to Daniel @ Lobith on the Discord.

I needed to both comment out atomic in CMakeLists.txt and then create a scratch directory using -B for my cmake command. Working now!