Problem compiling Aseprite on macOS Monterey Mac 12.3.6

Hello, I followed all the instructions in this youtube video: How to build Aseprite on MacOS | Free - YouTube to compile aseprite. I installed xcode, homebrew, cmake, ninja and I downloaded the source code of aseprite as well as skia on the github: aseprite/INSTALL.md at main · aseprite/aseprite · GitHub
but when I start compiling:
cd aseprite
mkdir build
cd build
cmake
-DCMAKE_BUILD_TYPE=RelWithDebInfo
-DCMAKE_OSX_ARCHITECTURES=x86_64
-DCMAKE_OSX_DEPLOYMENT_TARGET=12.6.3
-DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
-DLAF_BACKEND=skia
-DSKIA_DIR=$HOME/Documents/GitHub/skia
-DSKIA_LIBRARY_DIR=$HOME/Documents/GitHub/skia/out/Release-x64
-DSKIA_LIBRARY=$HOME/Documents/GitHub/skia/out/Release-x64/libskia.a
-G Ninja

ninja aseprite

it gives me this: mkdir: build: File exists
CMake Warning:
Ignoring extra path from command line:

“…”

CMake Error: The source directory “/Users/nathanmichelnkombe/aseprite” does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
ninja: error: loading ‘build.ninja’: No such file or directory

do you have a solution for me please?
Mac OS monterey 12.3.6

Do you have an M series mac by any chance ?

you script should is this:

cmake \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_OSX_ARCHITECTURES=x86_64 \
-DCMAKE_OSX_DEPLOYMENT_TARGET=12.0 \
-DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk \
-DLAF_BACKEND=skia \
-DSKIA_DIR=…/…/Skia \
-DSKIA_LIBRARY_DIR=…/…/Skia/out/Release-x64 \
-DSKIA_LIBRARY=…/…/Skia/out/Release-x64/libskia.a \
-G Ninja \

ninja aseprite


and you should write this to Aseprite/build/build.sh,then use sh ./build.sh to run.
(my Aseprite and skia at desktop)