On Tuesday 09 October 2012, Fabio Fracassi wrote: > Hello, > > I am using find_package in Module mode for a Library that is also build > using cmake. > The Library is build in a way that it can be used both from the build > dir, and from the installed location. > > When using find_package it always seems to prefer the build dir version, > which is somewhat surprising since I expect the default to be the > (supposably more stable) installed version and that the build dir > version (that could be broken at any time) needs some explicit interaction. > > Is the current state the way it is supposed to be? Can I force CMake to > do what I want?
Have you tried setting the environment variable CMAKE_PREFIX_PATH to point to the install location of your library ? 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