Skip to content
Snippets Groups Projects
  1. Sep 03, 2020
    • Kitware Robot's avatar
      Modernize: Use #pragma once in all header files · bdca8b01
      Kitware Robot authored
      #pragma once is a widely supported compiler pragma, even though it is
      not part of the C++ standard. Many of the issues keeping #pragma once
      from being standardized (distributed filesystems, build farms, hard
      links, etc.) do not apply to CMake - it is easy to build CMake on a
      single machine. CMake also does not install any header files which can
      be consumed by other projects (though cmCPluginAPI.h has been
      deliberately omitted from this conversion in case anyone is still using
      it.) Finally, #pragma once has been required to build CMake since at
      least August 2017 (7f29bbe6 enabled server mode unconditionally, which
      had been using #pragma once since September 2016 (b13d3e0d)). The fact
      that we now require C++11 filters out old compilers, and it is unlikely
      that there is a compiler which supports C++11 but does not support
      #pragma once.
      bdca8b01
  2. Aug 07, 2019
  3. Jul 14, 2019
  4. Sep 15, 2017
    • Brad King's avatar
      Use C++11 override instead of CM_OVERRIDE · 0b33aee4
      Brad King authored
      We now require C++11 support including `override`.  Drop use of
      the old compatibility macro.  Convert references as follows:
      
          git grep -l CM_OVERRIDE -- '*.h' '*.hxx' '*.cxx' |
            xargs sed -i 's/CM_OVERRIDE/override/g'
      0b33aee4
  5. Aug 26, 2017
  6. May 11, 2017
  7. Apr 11, 2017
    • 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
    • Daniel Pfeifer's avatar
      cmConfigure: Ensure separate include block in headers · 5afac50f
      Daniel Pfeifer authored
      Make sure that `#include <cmConfigure.h>` is followed by an empty line
      in header files.  This is necessary to make sure that changing <> to ""
      does not affect the include ordering of clang-format.
      
      Automate with:
      
      git grep -l '#include <cmConfigure.h>' | grep -v '.cxx$' \
      | xargs sed -i '/#include <cmConfigure.h>/ { N; N; s/\n\{1,2\}/\n\n/ }'
      5afac50f
  8. Oct 26, 2016
  9. Oct 22, 2016
  10. Sep 27, 2016
    • 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
  11. Jun 27, 2016
  12. May 16, 2016
    • Kitware Robot's avatar
      Revise C++ coding style using clang-format · d9fd2f54
      Kitware Robot authored and Brad King's avatar Brad King committed
      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
  13. Mar 08, 2014
  14. Oct 16, 2013
    • Brad King's avatar
      Drop builtin command documentation · e33d8d2d
      Brad King authored
      Drop all GetTerseDocumentation and GetFullDocumentation methods from
      commands.  The command documentation is now in Help/command/*.rst files.
      e33d8d2d
  15. Oct 08, 2013
  16. Nov 06, 2012
  17. Aug 13, 2012
    • Kitware Robot's avatar
      Remove trailing whitespace from most CMake and C/C++ code · 7bbaa428
      Kitware Robot authored and Brad King's avatar Brad King committed
      Our Git commit hooks disallow modification or addition of lines with
      trailing whitespace.  Wipe out all remnants of trailing whitespace
      everywhere except third-party code.
      
      Run the following shell code:
      
      git ls-files -z -- \
       bootstrap doxygen.config '*.readme' \
       '*.c' '*.cmake' '*.cpp' '*.cxx' \
       '*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \
       '*.mm' '*.pike' '*.py' '*.txt' '*.vim' |
      egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' |
      egrep -z -v '^(Modules/CPack\..*\.in)' |
      xargs -0 sed -i 's/ \+$//'
      7bbaa428
  18. Feb 29, 2012
  19. Jun 30, 2011
  20. Jan 26, 2011
  21. Dec 15, 2010
    • Brad King's avatar
      Introduce "generator expression" syntax to custom commands (#11209) · f0cdb600
      Brad King authored
      Evaluate in the COMMAND arguments of custom commands the generator
      expression syntax introduced in commit d2e1f2b4 (Introduce "generator
      expressions" to add_test, 2009-08-11).  These expressions have a syntax
      like $<TARGET_FILE:mytarget> and are evaluated during build system
      generation.  This syntax allows per-configuration target output files to
      be referenced in custom command lines.
      f0cdb600
  22. Nov 05, 2010
  23. Oct 01, 2009
  24. Sep 28, 2009
    • Brad King's avatar
      Convert CMake to OSI-approved BSD License · 96afb120
      Brad King authored
      This converts the CMake license to a pure 3-clause OSI-approved BSD
      License.  We drop the previous license clause requiring modified
      versions to be plainly marked.  We also update the CMake copyright to
      cover the full development time range.
      96afb120
  25. Apr 01, 2009
    • Brad King's avatar
      ENH: Clarify VERBATIM option documentation · 5982224a
      Brad King authored
      The previous wording of the VERBATIM option documentation in the
      add_custom_command and add_custom_target commands was confusing.  It
      could be interpreted as the opposite of what the option means (no
      escaping instead of escaping).  This clarifies the documentation to
      explicitly state that it escapes.
      5982224a
  26. Mar 30, 2009
  27. Jun 02, 2008
  28. May 14, 2008
  29. Jan 30, 2008
  30. Jan 23, 2008
  31. Oct 10, 2007
  32. Sep 17, 2007
  33. Jul 17, 2007
  34. May 23, 2007
    • Brad King's avatar
      BUG: Target names in the COMMAND part of a custom command should not create a... · c288da75
      Brad King authored
      BUG: Target names in the COMMAND part of a custom command should not create a file-level dependency that forces the command to rerun when the executable target rebuilds, but the target-level dependency should still be created.  Target names in a DEPENDS should do both a target-level and file-level dependency.  Updated the BuildDepends test to check that this works.
      c288da75
  35. Oct 04, 2006
  36. Oct 02, 2006
  37. Sep 28, 2006
  38. Jun 15, 2006
Loading