Could you post your entire cmake configure command line? Are there symlinks involved here at all? It seems odd that CMake thinks your home directory is the source directory. Surely that’s not what is actually intended?
Ah, yeah, that works. Your post has ... which made me think you were eliding them. You need to pass the path to the OpenFace directory that you cloned.
I am also facing the same problem. I am trying to install Geant4. and getting this error.
CMake Error: The source directory “/home/rubayet/softwaress/geant4/Geant4-11.1.1-Linux” does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI.
I CAN’T SEE ANY CMakeLists.txt IN THE BUILD FOLDER. PLEASE HELP.
You might want to use the -S and -B options to help make it clear which are the source and build directories. I do this from scripts too. For example, if the desired project with CMakeLists.txt is at ~/my/proj I can type (from anywhere)
1. I created the directory for OpenFold 2. I launched the setup.py file (from the OpenFold repository) to install the software
At this point I got the error:
4. But I got this error from the second command CMake Error: The source directory "/SSD/openfold" does not appear to contain CMakeLists.txt
So I followed the solution on this post and I created the /build directory in openfold
Then I launched again the command cmake -DCMAKE_CUDA_HOST_COMPILER=/usr/bin/g++-10 -B build
5. Unfortunately, I got the same error. CMake Error: The source directory "/SSD/openfold" does not appear to contain CMakeLists.txt.
I do not know if I am wrong creating the build directory under openfold or the issue come from the setyp.py of the openfold software or something else.
I also face the similar type of error while running the cmake command. “CMake Error: The source directory “/” does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI.”
What should I do?
can anyone suggest…
mkdir build
cd build
cmake -G Ninja .. -DCMAKE_BUILD_TYPE=Release
Getting this
Release
CMake Warning:
Ignoring extra path from command line:
".."
CMake Error: The source directory "/Users/rbn-bbn-barabek/build/build/build" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
I have the same problem, cmake regard my build folder as src folder.
[<my_account> ~/llvm-project-18.1.8.src]$ cmake -S llvm -B ./build -G "Unix Makefiles" -DLLVM_ENABLE_PROJECTS="clang;lld" -DCMAKE_BUILD_TYPE=Release
CMake Error: The source directory "/public/home/<my_account>/llvm-project-18.1.8.src/build" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.