1. 21 Jun, 2019 1 commit
  2. 23 May, 2019 1 commit
  3. 21 Feb, 2019 1 commit
  4. 07 Feb, 2019 1 commit
  5. 06 Nov, 2018 1 commit
  6. 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
  7. 13 Feb, 2018 1 commit
    • luz.paz's avatar
      MAINT: Misc. typos · 193082a3
      luz.paz authored
      Found via `codespell -q 3 -I ../cmake-whitelist.txt`.
      193082a3
  8. 12 Sep, 2017 1 commit
  9. 26 Aug, 2017 1 commit
  10. 24 Aug, 2017 1 commit
  11. 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
  12. 11 Jul, 2017 1 commit
  13. 16 May, 2017 1 commit
  14. 11 Apr, 2017 1 commit
    • Daniel Pfeifer's avatar
      Use quotes for non-system includes · 1d829c86
      Daniel Pfeifer authored
      Automate with:
      
      git grep -l '#include <cm_' -- Source \
        | xargs sed -i 's/#include <\(cm_.*\)>/#include "\1"/g'
      
      git grep -l '#include <cmsys/' -- Source \
        | xargs sed -i 's/#include <\(cmsys\/.*\)>/#include "\1"/g'
      
      git grep -l '#include <cm[A-Z]' -- Source \
        | xargs sed -i 's/#include <\(cm[A-Z].*\)>/#include "\1"/g'
      1d829c86
  15. 08 Nov, 2016 1 commit
  16. 26 Oct, 2016 1 commit
  17. 21 Oct, 2016 2 commits
  18. 19 Oct, 2016 3 commits
  19. 27 Sep, 2016 1 commit
    • Brad King's avatar
      Simplify CMake per-source license notices · 86578ecc
      Brad King authored
      Per-source copyright/license notice headers that spell out copyright holder
      names and years are hard to maintain and often out-of-date or plain wrong.
      Precise contributor information is already maintained automatically by the
      version control tool.  Ultimately it is the receiver of a file who is
      responsible for determining its licensing status, and per-source notices are
      merely a convenience.  Therefore it is simpler and more accurate for
      each source to have a generic notice of the license name and references to
      more detailed information on copyright holders and full license terms.
      
      Our `Copyright.txt` file now contains a list of Contributors whose names
      appeared source-level copyright notices.  It also references version control
      history for more precise information.  Therefore we no longer need to spell
      out the list of Contributors in each source file notice.
      
      Replace CMake per-source copyright/license notice headers with a short
      description of the license and lin...
      86578ecc
  20. 16 Sep, 2016 1 commit
  21. 11 Jul, 2016 1 commit
    • Brad King's avatar
      Restore find_(library|file|path) search of PATH itself · 54475018
      Brad King authored
      The fix in commit commit v3.6.0-rc1~82^2 (Drop find_(library|file|path)
      prefixes from PATH on non-Windows, 2016-05-09) aggressively dropped
      search of the entries in PATH itself in addition to the prefixes derived
      from it.  This regresses find modules that (incorrectly) depended on the
      behavior, including some of our own modules such as FindImageMagick.
      
      Restore the search of entries in PATH itself.  If we want to drop it
      later we will need to do so with a policy.  Fixes #16192.
      54475018
  22. 16 May, 2016 1 commit
    • Kitware Robot's avatar
      Revise C++ coding style using clang-format · d9fd2f54
      Kitware Robot authored
      Run the `Utilities/Scripts/clang-format.bash` script to update
      all our C++ code to a new style defined by `.clang-format`.
      Use `clang-format` version 3.8.
      
      * If you reached this commit for a line in `git blame`, re-run the blame
        operation starting at the parent of this commit to see older history
        for the content.
      
      * See the parent commit for instructions to rebase a change across this
        style transition commit.
      d9fd2f54
  23. 09 May, 2016 2 commits
    • Brad King's avatar
      Drop find_(library|file|path) prefixes from PATH on non-Windows · b30b32a4
      Brad King authored
      
      
      Since commit v3.3.0-rc1~430^2 (Teach find_(library|file|path) to get
      prefixes from PATH, 2015-02-18) we search in <prefix>/include and
      <prefix>/lib directories for prefixes with bin directories in the PATH
      environment variable.  The motivation was to support MSYS, MinGW and
      similar Windows platforms in their default environments automatically.
      At the time this behavior was thought to be worthwhile in general.
      Suggested-by: Chuck Atkins's avatarChuck Atkins <chuck.atkins@kitware.com>
      b30b32a4
    • Brad King's avatar
      Remove `//------...` horizontal separator comments · 0ac18d40
      Brad King authored
      Modern editors provide plenty of ways to visually separate functions.
      Drop the explicit comments that previously served this purpose.
      Use the following command to automate the change:
      
          $ git ls-files -z -- \
              "*.c" "*.cc" "*.cpp" "*.cxx" "*.h" "*.hh" "*.hpp" "*.hxx" |
            egrep -z -v "^Source/cmCommandArgumentLexer\." |
            egrep -z -v "^Source/cmCommandArgumentParser(\.y|\.cxx|Tokens\.h)" |
            egrep -z -v "^Source/cmDependsJavaLexer\." |
            egrep -z -v "^Source/cmDependsJavaParser(\.y|\.cxx|Tokens\.h)" |
            egrep -z -v "^Source/cmExprLexer\." |
            egrep -z -v "^Source/cmExprParser(\.y|\.cxx|Tokens\.h)" |
            egrep -z -v "^Source/cmFortranLexer\." |
            egrep -z -v "^Source/cmFortranParser(\.y|\.cxx|Tokens\.h)" |
            egrep -z -v "^Source/cmListFileLexer\." |
            egrep -z -v "^Source/cm_sha2" |
            egrep -z -v "^Source/(kwsys|CursesDialog/form)/" |
            egrep -z -v "^Utilities/(KW|cm).*/" |
            xargs -0 sed -i '/^\(\/\/---*\|\/\*---*\*\/\)$/ {d;}'
      
      This avoids modifying third-party sources and generated sources.
      0ac18d40
  24. 14 Sep, 2015 1 commit
  25. 22 Jul, 2015 1 commit
  26. 13 Apr, 2015 2 commits
  27. 08 Apr, 2015 1 commit
  28. 07 Apr, 2015 1 commit
    • Brad King's avatar
      Revert topic 'refactor-cache-api' · 3347c5e4
      Brad King authored
      This topic was never tested without some follow-up commits.  The
      GetCacheEntryValue API returns a pointer to memory freed on return.
      It will have to be revised along with the rest of the original topic.
      3347c5e4
  29. 06 Apr, 2015 1 commit
  30. 10 Mar, 2015 1 commit
  31. 20 Feb, 2015 2 commits
  32. 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
  33. 11 Feb, 2015 1 commit
  34. 18 Jan, 2015 1 commit