1. 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 links to `Copyright.txt` and online information
      available from "https://cmake.org/licensing".  The online URL also handles
      cases of modules being copied out of our source into other projects, so we
      can drop our notices about replacing links with full license text.
      
      Run the `Utilities/Scripts/filter-notices.bash` script to perform the majority
      of the replacements mechanically.  Manually fix up shebang lines and trailing
      newlines in a few files.  Manually update the notices in a few files that the
      script does not handle.
      86578ecc
  2. 31 Mar, 2016 1 commit
  3. 22 Apr, 2015 1 commit
  4. 05 Feb, 2015 1 commit
  5. 19 Aug, 2014 1 commit
  6. 31 Jul, 2014 1 commit
  7. 30 Jul, 2014 1 commit
    • Brad King's avatar
      Check*CompilerFlag: Avoid ';' in common pattern (#15048) · cac91206
      Brad King authored
      In commit v3.0.0-rc1~551^2~1 (Check*CompilerFlag: make C and CXX modules
      share most error patterns, 2013-08-08) a pattern containing a ';' was
      moved out of a ""-quoted argument and into a variable.  CMake flattens
      the containing list and breaks the pattern.  Use a '.' to match ';'.
      cac91206
  8. 08 Oct, 2013 1 commit
  9. 13 Aug, 2013 2 commits
  10. 25 Jul, 2013 1 commit
  11. 22 Apr, 2013 1 commit
  12. 13 Aug, 2012 2 commits
    • Kitware Robot's avatar
      Remove CMake-language block-end command arguments · 9db31162
      Kitware Robot authored
      Ancient versions of CMake required else(), endif(), and similar block
      termination commands to have arguments matching the command starting the
      block.  This is no longer the preferred style.
      
      Run the following shell code:
      
      for c in else endif endforeach endfunction endmacro endwhile; do
          echo 's/\b'"$c"'\(\s*\)(.\+)/'"$c"'\1()/'
      done >convert.sed &&
      git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' |
      egrep -z -v '^(Utilities/cm|Source/kwsys/)' |
      egrep -z -v 'Tests/CMakeTests/While-Endwhile-' |
      xargs -0 sed -i -f convert.sed &&
      rm convert.sed
      9db31162
    • Kitware Robot's avatar
      Convert CMake-language commands to lower case · 77543bde
      Kitware Robot authored
      Ancient CMake versions required upper-case commands.  Later command
      names became case-insensitive.  Now the preferred style is lower-case.
      
      Run the following shell code:
      
      cmake --help-command-list |
      grep -v "cmake version" |
      while read c; do
          echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g'
      done >convert.sed &&
      git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' |
      egrep -z -v '^(Utilities/cm|Source/kwsys/)' |
      xargs -0 sed -i -f convert.sed &&
      rm convert.sed
      77543bde
  13. 26 Apr, 2012 1 commit
  14. 23 Feb, 2012 1 commit
  15. 12 Feb, 2012 1 commit
  16. 24 Aug, 2011 1 commit
  17. 23 Aug, 2011 1 commit
  18. 08 Aug, 2011 1 commit
  19. 04 Nov, 2010 1 commit
  20. 09 Aug, 2010 1 commit
  21. 01 Oct, 2009 1 commit
  22. 28 Sep, 2009 1 commit
    • Brad King's avatar
      Convert CMake non-find modules to BSD License · 3a666595
      Brad King authored
      This adds copyright/license notification blocks CMake's non-find
      modules.  Most of the modules had no notices at all.  Some had notices
      referring to the BSD license already.  This commit normalizes existing
      notices and adds missing notices.
      3a666595
  23. 18 Sep, 2009 1 commit
  24. 17 Sep, 2009 3 commits
    • Brad King's avatar
      Fix CHECK_(C|CXX)_COMPILER_FLAG for HP · 53fb07ef
      Brad King authored
      This compiler warns and returns 0 for unrecognized flags.  We fix the
      compiler flag check macros by looking for a warning in the output.
      See issue #9516.
      53fb07ef
    • Brad King's avatar
      Fix CHECK_(C|CXX)_COMPILER_FLAG for GNU and MSVC · 7e3d437d
      Brad King authored
      These compilers warn and return 0 for unrecognized flags.  We fix the
      compiler flag check macros by looking for a warning in the output.
      See issue #9516.
      7e3d437d
    • Brad King's avatar
      Cleanup generic compiler check macro documentation · 80af3ae3
      Brad King authored
      This commit improves formatting and style of the documentation for the
      general-purpose compiler check macros:
      
        CHECK_C_COMPILER_FLAG
        CHECK_C_SOURCE_COMPILES
        CHECK_C_SOURCE_RUNS
        CHECK_CXX_COMPILER_FLAG
        CHECK_CXX_SOURCE_COMPILES
        CHECK_CXX_SOURCE_RUNS
      
      This sytle is more consistent with CMake command documentation.
      It also looks nicer in the generated documentation text files.
      80af3ae3
  25. 18 Sep, 2006 1 commit