[cmake-developers] Add a new SYSTEM_ONLY mode for CMAKE_FIND_ROOT_PATH

Brad King brad.king at kitware.com
Wed Aug 20 08:55:51 EDT 2014


On 08/19/2014 05:43 PM, Chuck Atkins wrote:
> The new hybrid mode allows the default search location to be
> re-rooted and any user specified paths to be untouched.

This looks useful.  However, the current implementation appears
to change the order in which each kind of path is generated.
The order is very important and cannot be changed.

Instead you'll have to refactor the path generation to store
a boolean with each value that indicates whether it is to be
re-rooted or not.  Or, re-arrange the generation to construct
separate lists of paths from each source first, and then
combine them while re-rooting some.

Thanks,
-Brad




More information about the cmake-developers mailing list