Page 1 of 1

CMAKE cannot find CMakeLists.txt

PostPosted: Fri Apr 01, 2011 5:21 am
by jacky70122
Hi, I want to use clapack in VS2008 in Win 7. So I downloaded clapack-3.2.1-CMAKE.gz, unpack to a file clapack-3.2.1-CMAKE, and then do the following to compile clapack using CMAKE
1. Open CMAKE
2. "Where is the source code:" point to the folder contains clapack-3.2.1-CMAKE (D:/HPC_Software/Clapack-install in my case)
3. Point to a new folder where to build the binary
4. Configure

It generates the following error:
CMake Error: The source directory "D:/HPC_Software/Clapack-install" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

Does anyone know where CMakeLists.txt is?

Jacky

Re: CMAKE cannot find CMakeLists.txt

PostPosted: Sat Apr 02, 2011 8:33 pm
by chuckatkins
Jacky,
The CMakeLists.txt file will be in the top level source directory for clapack. It seems like you are pointing to the folder containing the source folder. Try pointing to the actual source folder, in your case, D:/HPC_Software/Clapack-install/clapack-3.2.1-CMAKE .

Re: CMAKE cannot find CMakeLists.txt

PostPosted: Wed Apr 27, 2011 3:26 pm
by edward
Hello.

Perhaps I've misunderstood the instructions, but I downloaded clapack-3.2.1-CMAKE.gz and unzipped it, and only one file was included, namely clapack-3.2.1-CMAKE. Is this as it should be? The reply below seems to indicate that clapack-3.2.1-CMAKE is a folder rather than a file.

Thanks and regards,

Ed

Re: CMAKE cannot find CMakeLists.txt

PostPosted: Wed Apr 27, 2011 3:44 pm
by admin
Indeed it is a folder!
Did you try this link? http://netlib.org/clapack/clapack-3.2.1-CMAKE.tgz
You may not have the correct tool under Windows to unzip it, or sometimes Windows requires to unzip it twice.
I usually use 7-zip or IZarc under Windows.
Julie

Re: CMAKE cannot find CMakeLists.txt

PostPosted: Wed Apr 27, 2011 4:55 pm
by edward
Julie,

Many thanks for your help. Using 7-zip and extracting twice worked.

Best regards,

Ed