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

Chuck Atkins chuck.atkins at kitware.com
Tue Aug 19 17:43:13 EDT 2014


I just pushed a branch to the topic stage to address a long standing issue
I've had with cross compiling and toolchain files.  The branch,
add-find-root-system_only-mode , adds a new SYSTEM_ONLY mode to the root
path search options.  Currently the possible options are:

   - ONLY - re-roots all searches to the specified root paths
   - NEVER - entirely ignores the root path
   - BOTH - combines the paths from ONLY and NEVER

The new hybrid mode allows the default search location to be re-rooted and
any user specified paths to be untouched.  This is particularly common for
HPC systems which have a minimalist shared system root available as
read-only but you also have a super-build which you want to re-use certain
components of without having to specify the full path to every library and
include directory, i.e. let CMake find things in it.

Any feedback would be welcome.

- Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20140819/e745d7f4/attachment.html>


More information about the cmake-developers mailing list