1. 30 Oct, 2019 1 commit
  2. 14 May, 2019 1 commit
  3. 11 Nov, 2018 1 commit
  4. 22 Oct, 2018 1 commit
  5. 11 Jan, 2017 1 commit
    • Daniel Pfeifer's avatar
      Don't include CMakeParseArguments · d6877e6c
      Daniel Pfeifer authored
      The cmake_parse_arguments command is builtin with version 3.5.
      The CMakeParseArguments module is empty and exists for backwards
      compatibility with CMake 3.4 and lower.
      
      Remove the includes of CMakeParseArguments from CMake's modules.
      The modules are always used with the current version of CMake.
      
      Leave the includes in the tests, as the tests may be run with an older
      version of CMake.
      d6877e6c
  6. 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
  7. 27 Jul, 2016 1 commit
    • Daniel Pfeifer's avatar
      Use string(APPEND) in Modules · 5d0d980d
      Daniel Pfeifer authored
      Automate with:
      
      find Modules -type f -print0 | xargs -0 perl -i -0pe \
      's/set\(([a-zA-Z0-9_]+)(\s+)"\$\{\1\}([^"])/string(APPEND \1\2"\3/g'
      5d0d980d
  8. 22 Oct, 2014 1 commit
  9. 07 Jan, 2014 1 commit
    • Stephen Kelly's avatar
      Help: Fix some erroneous code block markers in Module docs. · efc43cde
      Stephen Kelly authored
      There are many style errors in these files. This patch fixes only
      the syntactical errors.
      
      The script which ported these to rst tripped on some incorrectly
      formatted blocks in the original input documentation.  Use a new
      script to find problematic code (and then fix them manually):
      
        #!/usr/bin/env python
      
        import os
      
        rootDir = '.'
      
        def checkFile(fname):
      
          f = open(fname)
          lines = f.readlines()
          started = False
          counter = 0
          for l in lines:
            if "#" in l:
              started = True
            elif started:
              return
            lin = l.find("(")
            if lin != -1 and l.find(")", lin) == -1 and \
                not "(To distribute this file outside of CMake, substitute the full" in l:
              for lp in lines[counter+1:]:
                if lp == "# ::\n":
                  print "\n\n######### " + fname + "\n\n"
                  print ''.join(lines[max(counter-2, 0):counter+6])
                  break
                elif lp == "#\n" :
                  continue
                break
            counter += 1
      
        for dirName, subdirList, fileList in os.walk(rootDir):
            for fname in fileList:
                checkFile(os.path.join(dirName, fname))
      efc43cde
  10. 15 Oct, 2013 1 commit
  11. 27 Jul, 2013 1 commit