'CMake does not find the source directory (installing Eigen)

I was installing the library Eigen on Ubuntu. I followed the instructions by creating a "build directory" alongside the downloaded source directory. That is, I have two directories: eigen-eigen-1306d75b4a21 for source, and an empty eigen-build for build.

Then I did:

cd eigen-build
cmake ../eigen-eigen-1306d75b4a21/
sudo make install

An error occurred immediately after make install and it stops the installation:

CMake Error: The source directory "/home/username/something/eigen-eigen-1306d75b4a21" does not exist.

Obviously the directory exists. What is wrong with my CMake? (I don't know much about CMake. I observed some warnings during the second step, saying lots of things such as Qt4 are missing, but I don't think this is the cause, because of what the error message suggests.)



Solution 1:[1]

Probably your directory does not include the CMakeLists.txt file.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Claudio