[CMake] findAtlas cmake

Michael Wild themiwi at gmail.com
Wed Nov 3 01:37:45 EDT 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

On 11/03/2010 12:48 AM, luxInteg wrote:
> Greetings,
> 
> I am a  novice  at cmake  and   attempting to compile lapack-3.2.2 on a 
> computer with these:-
> ---cpu amd64 2 cores
> ---BLAS: atlas3.9.26 in /usr/local/atlas
> ---gcc-4.2.2/gfortran cmake-2.8
> 
> 
> here is a list of algebra stuff in /usr/local/atlas/lib
> root [ ~ ]# ls /usr/local/atlas/lib
> libacml_mp.so  libatlas.a   libcblas.a   libf77blas.a    libptcblas.a   
> libptf77blas.a
> libacml_mv.so  libatlas.so  libcblas.so  libf77blas.so   libptcblas.so  
> libptf77blas.so
> root [ ~ ]# 
> 
> 
> 
> There is a FindBLAS module in ~share/cmake-2.8/modules  but no search paths 
> are set   for  linux.

That's not necessary, since CMake searches the common locations on its
own. Now, /usr/local would be common, but not /usr/local/atlas.

> And as a complete ignoramous  I cannot see anywhere one could poke one.

Set the environment variable CMAKE_PREFIX_PATH to /usr/local/atlas
before you run CMake. This tells CMake to first go look in
/usr/local/atlas, and only then consider all the other default locations.

HTH

Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkzQ9SkACgkQyAe0BK8NufPWtgCfYgJyF0mTlrQVD8ofOKn1h1dw
kScAoI0ZHuPm5UxaWeJv1RWM7PoFlsGH
=lmYH
-----END PGP SIGNATURE-----


More information about the CMake mailing list