XCode Project with "CMake" : ANYONE KNOW HOW?

I am trying to setup an XCode project for OBS. I have followed the instructions for downloading and building on Mac as per this Wiki:


Everything builds, and I'm able to run OBS and use it for broadcast. BUT....

When I follow these instructions for running CMake to build the XCode project:


macOS Xcode Project
To create an Xcode project for OBS, cmake must be run with additional flags. Follow the build instructions above to create a working configuration setup, then add -G Xcode to the cmake command, e.g.:

cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.13 -DDISABLE_PYTHON=ON -G Xcode

I get this error:

-----

CMake Warning:

No source or binary directory provided. Both will be assumed to be the
same as the current working directory, but note that this warning will
become a fatal error in future CMake releases.

CMake Error: The source "/Users/darndt/projects/obs-studio/build/CMakeLists.txt" does not match the source "/Users/darndt/Projects/obs-studio/CMakeLists.txt" used to generate cache. Re-run cmake with a different source directory.


----------

How do I change the 'source directory' as suggested in the error? Is it an environment variable? Or is this specified somewhere else? What should the source directory be set to? Once again: this is all following the instructions on the wiki, so my current directory structure matches that.

Please advise.... the 'recipe' specified in the Wiki only gets you a 50% of the way there... (unless you're a CMake/XCode guru?)

-da
 
Top