1. 18 May, 2019 1 commit
    • Sebastian Holtermann's avatar
      Makefiles: Process ADDTIONAL_CLEAN_FILES dir prop at directory level · 1ded3599
      Sebastian Holtermann authored
      In the "Unix Makefiles" generator, the `ADDTIONAL_CLEAN_FILES` directory
      property was evaluated on a per target basis. This had two drawbacks:
      - per directory clean files were repeated in every target clean script
      - per directory clean files weren't removed in directories without targets
        (issue #8164)
      
      This patch moves the `ADDTIONAL_CLEAN_FILES` directory property processing
      from the target to the directory level clean target.
      
      Fixes: #8164 "ADDITIONAL_CLEAN_FILES directory property not respected if no
                    target present in directory"
      1ded3599
  2. 14 May, 2019 1 commit
  3. 27 Mar, 2019 1 commit
    • Sebastian Holtermann's avatar
      cmDepends: Define DependencyMap instead of DependencyVector · 87341d83
      Sebastian Holtermann authored
      In `cmDepends` use
      `typedef std::map<std::string, std::vector<std::string>> DependencyMap`
      instead of defining a
      `class DependencyVector : public std::vector<std::string>`
      and using it in `std::map<std::string, DependencyVector>`.
      
      Since `std::map<std::string, std::vector<std::string>>` is used in various
      other places, we now reuse all of it's auto generated methods.  This doesn't
      happen when we use `DependencyVector` in a `std::map`, because it is a
      different class than `std::vector<std::string>`.
      87341d83
  4. 12 Mar, 2019 1 commit
  5. 27 Jan, 2019 1 commit
  6. 25 Jan, 2019 2 commits
  7. 22 Jan, 2019 2 commits
  8. 18 Jan, 2019 1 commit
  9. 15 Dec, 2018 2 commits
  10. 04 Jun, 2018 1 commit
  11. 31 Jan, 2018 1 commit
    • Pavel Solodovnikov's avatar
      Reduce raw string pointers usage. · 653b8946
      Pavel Solodovnikov authored
      * Change some functions to take `std::string` instead of
        `const char*` in the following classes: `cmMakeFile`, `cmake`,
        `cmCoreTryCompile`, `cmSystemTools`,  `cmState`, `cmLocalGenerator`
        and a few others.
      * Greatly reduce using of `const char*` overloads for
        `cmSystemTools::MakeDirectory` and `cmSystemTools::RelativePath`.
      * Remove many redundant `c_str()` conversions throughout the code.
      653b8946
  12. 29 Jan, 2018 1 commit
  13. 23 Jan, 2018 1 commit
  14. 15 Sep, 2017 1 commit
    • 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
  15. 26 Aug, 2017 1 commit
  16. 24 Aug, 2017 1 commit
  17. 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
  18. 06 Oct, 2016 1 commit
    • Stephen Kelly's avatar
      Makefiles: Introduce local RelativePath method · 1ed5f6b3
      Stephen Kelly authored
      This makes it easier to remove directory-specific state from
      cmOutputConverter where it doesn't belong.  Of course, this just
      relocates the problem to the makefiles generator for now, but that's
      better than affecting the core.
      1ed5f6b3
  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 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
  20. 03 Sep, 2016 1 commit
  21. 27 Aug, 2016 5 commits
  22. 28 Jun, 2016 1 commit
  23. 27 Jun, 2016 1 commit
  24. 25 May, 2016 1 commit
    • Daniel Pfeifer's avatar
      Use enums defined in cmOutputConverter using their fully qualified name. · 25d1ef64
      Daniel Pfeifer authored
      Mostly automated:
      
      values=("RelativeRoot" "NONE" "FULL" "HOME" "START" "HOME_OUTPUT" "START_OUTPUT"
              "OutputFormat" "UNCHANGED" "MAKERULE" "SHELL" "WATCOMQUOTE" "RESPONSE"
              "FortranFormat" "FortranFormatNone" "FortranFormatFixed" "FortranFormatFree")
      for i in "${values[@]}"; do git grep -l cmLocalGenerator::$i | xargs sed -i "s|cmLocalGenerator::$i|cmOutputConverter::$i|g"; done
      25d1ef64
  25. 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
  26. 24 Oct, 2015 1 commit
  27. 20 Oct, 2015 1 commit
  28. 17 Oct, 2015 1 commit
  29. 14 Oct, 2015 4 commits
  30. 28 Aug, 2015 1 commit