Error when running the command
Ghostkwebb opened this issue · 3 comments
So I ran this command: cmake .. -DENABLE_METAL=ON
Then I get the error below
What to do?
CMake Error: The source directory "/Users/ghostkwebb/Desktop" does not appear to contain CMakeLists.txt.
It looks like you're running cmake in the root directory, which is why it fails to find the CMakeLists.txt file. I recommend making a build subdirectory and running cmake there:
mkdir build
cd build
cmake .. -DENABLE_METAL=ON
make
I didn't understand what u said 😅😅 but I ran the command u gave and got this
CMake Error: The source directory "/Users/ghostkwebb" does not appear to contain CMakeLists.txt.
also I used homebrew to install cmake
I see, it looks like you're not running it in the right subdirectory so the path is wrong when you copy-paste it in. From cloning the repo to building you'd run:
git clone git@github.com:Twinklebear/ChameleonRT.git
cd ChameleonRT
mkdir build
cd build
cmake .. -DENABLE_METAL=ON
make
So the directory structure is like:
ChameleonRT/
CMakeLists.txt
- build/
you run cmake in here and pass path to parent directory so it finds CMakeListst.txt