On Friday 30 December 2011, Alan W. Irwin wrote: > On 2011-12-30 11:06+0100 Eric Noulard wrote: > > 2011/12/27 Alan W. Irwin <ir...@beluga.phys.uvic.ca>: > > > > Hi Alan, > > > >> The issue is that if I set CMAKE_LIBRARY_PATH to find a special > >> version of lapack/blas, only the lapack part of that is honored. For > >> example, if I set > >> > >> export CMAKE_LIBRARY_PATH=/home/software/lapack/install_double/lib > > > > Did you tried with CMAKE_FIND_ROOT_PATH instead? > > > > cmake -DCMAKE_FIND_ROOT_PATH:PATH=/home/software/lapack/install_double > > /path/to/source > > > > in fact I wasn't even aware of the CMAKE_LIBRARY_PATH nor friends > > like CMAKE_PREFIX_PATH and the like. > > Hmm. I had never heard of CMAKE_FIND_ROOT_PATH until now, but it > certainly wasn't around when I learned all about CMAKE_LIBRARY_PATH > and CMAKE_INCLUDE_PATH years ago. I guess the problem is I have too > long a history with CMake, and I haven't been paying enough attention to > the more recently developed features. :-)
It is intended to be used for cross compiling. There it should be used to tell cmake where to find the root of the target system. I guess you know CMAKE_PREFIX_PATH ? Alex -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake