1. 27 Oct, 2019 1 commit
    • Craig Scott's avatar
      Help: Document that <PackageName>_ROOT applies to config packages too · 049dbdd3
      Craig Scott authored
      The original intent of <PackageName>_ROOT may have been for it
      to apply only to Find modules, but the implementation of the
      find_package() command treats modules and config packages the
      same. Both result in a <PackageName>_ROOT variable being
      pushed onto the stack of package roots. A config package can
      also call other find_...() commands, the behavior doesn't apply
      just to find modules.
      049dbdd3
  2. 09 Jul, 2019 1 commit
  3. 21 Jun, 2019 1 commit
  4. 25 Oct, 2018 1 commit
  5. 05 Sep, 2018 1 commit
  6. 20 Jul, 2018 1 commit
  7. 04 Jun, 2018 1 commit
  8. 20 Apr, 2018 1 commit
  9. 16 Mar, 2018 1 commit
    • Brad King's avatar
      find_package: Use PackageName_ROOT variables as search prefixes · eb35d888
      Brad King authored
      This feature was originally added by commit v3.9.0-rc1~71^2~2 (find_*:
      Add a new PackageRoot search path group, 2017-05-03) and documented by
      commit v3.9.0-rc1~71^2 (find_*: Add docs for PackageRoot search path
      group, 2017-05-03).  However, we had to disable the feature and remove
      the documentation in commit v3.9.1~2^2 (find_*: Disable the PACKAGE_ROOT
      search path group for CMake 3.9, 2017-08-08) due to breaking projects
      that used `PackageName_ROOT` variables themselves.
      
      Add policy `CMP0074` to restore the `PackageName_ROOT` variable behavior
      in a compatible way.  Also revise the stack of root paths to store the
      paths themselves rather than the package names.  This way the policy can
      be considered at the `find_package` call site instead of individual
      `find_` calls inside a find module.
      
      Co-Author: Chuck Atkins <chuck.atkins@kitware.com>
      Issue: #17144
      eb35d888
  10. 08 Aug, 2017 1 commit
    • Brad King's avatar
      find_*: Disable the PACKAGE_ROOT search path group for CMake 3.9 · 578d95f8
      Brad King authored
      Disable the feature added by commit v3.9.0-rc1~71^2~2 (find_*: Add a new
      PackageRoot search path group, 2017-05-03) and remove documentation
      added by commit v3.9.0-rc1~71^2 (find_*: Add docs for PackageRoot search
      path group, 2017-05-03).  Unfortunately the name `<pkg>_ROOT` may
      already be set by projects for their own incompatible purposes.  Disable
      the behavior change for now to fix the regression for CMake 3.9.  We can
      restore it later with a policy.
      
      In order to keep the implementation and tests working, add an
      undocumented variable we can use in the tests to enable the behavior
      before the policy is introduced.
      
      Fixes: #17144
      578d95f8
  11. 19 May, 2017 1 commit
  12. 18 Apr, 2017 1 commit
  13. 08 Jun, 2015 3 commits
  14. 19 Feb, 2015 1 commit
    • Brad King's avatar
      Teach find_(library|file|path) to get prefixes from PATH (#15370) · ffc06c12
      Brad King authored
      The find_package command already knows how to compute installation
      prefixes from PATH.  Use the same approach to establish prefixes for
      find_library, find_file, and find_path to use to look in directories
      like "<prefix>/lib[/<arch>]" and "<prefix>/include" for libraries and
      headers.  This will reduce the amount of configuration end users need to
      do to establish a work environment rooted under a specific prefix.
      ffc06c12
  15. 16 Oct, 2013 1 commit
    • Brad King's avatar
      Help: Factor out find_* command duplication · 89821613
      Brad King authored
      These documents were represented in the builtin documentation using a
      common starting point with placeholders substituted by each command.
      Convert them back to this approach using the reStructuredText include
      directive and substitutions to avoid duplication.
      89821613