On 05/16/2011 10:08 PM, Clifford Yapp wrote: > On Mon, May 16, 2011 at 4:00 PM, Alexander Neundorf > <[email protected]> wrote: > >> So you basically want an opposite to HINTS and PATHS, like e.g. EXCLUDE ? >> Doesn't sound too bad. > > Yes, that would work - ideally though I'd like to EXCLUDE the path > from ALL finds by defining it once in the CMakeLists.txt file, instead > of per-find-command. > >> If you know where your stuff will be, you could also use NO_DEFAULT_PATH and >> the add all the valid options for your case yourself. > > Unfortunately, it's not that restricted. I do need to search > "normally", but I need to do so WITHOUT returning the stale results in > an old install directory. > > Cheers, > CY
Have you already tried the CMAKE_[SYSTEM_]IGNORE_PATH variables? At the first glance, they provide exactly the functionality you need. Regards, Michael _______________________________________________ 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
