1. 31 Mar, 2019 1 commit
  2. 25 Apr, 2018 1 commit
  3. 26 Mar, 2018 1 commit
  4. 15 Dec, 2017 1 commit
  5. 18 Oct, 2017 1 commit
    • Brad King's avatar
      VS,Xcode: Add CMakeLists.txt sources without mutating targets · 344d149a
      Brad King authored
      Rather than injecting `CMakeLists.txt` files into each target's
      `SOURCES`, teach the generators to add them during generation using
      dedicated code.  This avoids mutating the original targets, and avoids
      polluting `$<TARGET_PROPERTY:foo,SOURCES>` with generator-specific
      This also avoids listing the `CMakeLists.txt` sources in the results of
      `CMAKE_DEBUG_TARGET_PROPERTIES==SOURCES` so the `RunCMake.TargetSources`
      test no longer needs a separate case for IDEs.
  6. 26 Aug, 2017 1 commit
  7. 13 Apr, 2017 1 commit
    • Brad King's avatar
      VS: Teach generators how to mark per-config source files · 97cc29c7
      Brad King authored
      Add internal infrastructure for looping over all sources for all
      configurations and generating each source with exclusion marks
      for configurations in which they do not participate.  This does
      not yet make per-config sources available in general but does
      set up some of the needed infrastructure.
      Unfortunately doing this cleanly will require major refactoring of both
      the VS 7-9 generators and the VS 10+ generators (for separate reasons).
      Instead add some extra internal structures to carry information where we
      need it.
  8. 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'
  9. 09 Mar, 2017 1 commit
    • Brad King's avatar
      Refactor module definition file selection · 25d261ef
      Brad King authored
      Create a `ModuleDefinitionInfo` structure for each configuration of a
      target to hold corresponding information about the selected module
      definition file (`.def` source).
  10. 28 Nov, 2016 1 commit
  11. 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.
  12. 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.
  13. 29 Apr, 2016 1 commit
    • Brad King's avatar
      Source: Stabilize include order · 180538c7
      Brad King authored
      Each source file has a logical first include file.  Include it in an
      isolated block so that tools that sort includes do not move them.
  14. 15 Mar, 2016 1 commit
  15. 24 Oct, 2015 2 commits
  16. 16 Oct, 2015 1 commit
  17. 14 Oct, 2015 1 commit
  18. 28 Aug, 2015 2 commits
  19. 27 May, 2015 1 commit
    • Stephen Kelly's avatar
      cmLocalGenerator: Require a valid cmState::Snapshot in the ctor. · 3b880a07
      Stephen Kelly authored
      Refactor the local generator creation API to accept a
      cmState::Snapshot.  Adjust MakeLocalGenerator to use the 'current'
      snapshot in cases where there is no parent.  Create the snapshot
      for subdirectories in cmMakefile::AddSubdirectory.
      This means that snapshots are now created at the point of extending the tree,
      as appropriate, and independently of the cmLocalGenerator and cmMakefile they
      represent the state for.
  20. 21 May, 2015 1 commit
    • Brad King's avatar
      VS: Do not accumulate configurations globally (#15577) · 2f4bb4e9
      Brad King authored
      Drop the VS >= 7 generator's global Configurations member and instead
      lookup configurations using cmMakefile::GetConfigurations where needed.
      This avoids accumulating all CMAKE_CONFIGURATION_TYPES values ever
      encountered by a project() or enable_language() command and allows
      the final value to be used in each directory.  We don't officially
      support per-directory CMAKE_CONFIGURATION_TYPES values but we certainly
      should not generate configurations not in the final value in the top
      level directory.
  21. 19 May, 2015 2 commits
  22. 14 May, 2015 1 commit
  23. 28 Apr, 2015 1 commit
  24. 17 Jul, 2014 1 commit
  25. 08 Mar, 2014 6 commits
  26. 05 Aug, 2013 1 commit
  27. 08 Mar, 2013 1 commit
  28. 26 Nov, 2012 1 commit
  29. 13 Aug, 2012 1 commit
    • Kitware Robot's avatar
      Remove trailing whitespace from most CMake and C/C++ code · 7bbaa428
      Kitware Robot authored
      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/ \+$//'
  30. 28 Mar, 2012 1 commit
    • Brad King's avatar
      VS: Add CMakeLists.txt re-run rules at start of generation · 01e979ac
      Brad King authored
      Since commit 328c0f65 (Simplify cmVisualStudio10TargetGenerator source
      classification, 2012-03-19) the VS 10 generator uses the
      cmGeneratorTarget source classification instead of directly getting the
      list of source files from the target.  This accidentally dropped the
      CMakeLists.txt files from generated projects because they are added too
      late for cmGeneratorTarget.
      All generator-specific source files must be added to targets prior to
      cmGeneratorTarget construction.  Refactor addition of the CMakeLists.txt
      files with CMake re-run custom commands to take place before normal
      generation begins, and therefore early enough to be included in the
      cmGeneratorTarget classification.
  31. 09 Mar, 2012 1 commit
  32. 06 Mar, 2012 1 commit