1. 07 Aug, 2018 1 commit
  2. 01 Jun, 2018 1 commit
    • Kitware Robot's avatar
      Revise C++ coding style using clang-format-6.0 · d7204e64
      Kitware Robot authored
      Run the `clang-format.bash` script to update all our C and C++ code to a
      new style defined by `.clang-format`.  Use `clang-format` version 6.0.
      
      * 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.
      d7204e64
  3. 25 May, 2018 1 commit
    • Florian Maushart's avatar
      cmake: Add options for parallel builds to --build mode · 1ab3881e
      Florian Maushart authored
      While we already support `cmake --build . -- -j`, the options after `--`
      are specific to the native build tool.  Add new options `--parallel
      [<N>]` and `-j [<N>]` to abstract this and map to the proper option
      for the native build tool.
      1ab3881e
  4. 02 Apr, 2018 1 commit
  5. 01 Apr, 2018 1 commit
  6. 29 Mar, 2018 1 commit
  7. 08 Mar, 2018 1 commit
  8. 21 Feb, 2018 1 commit
    • Brad King's avatar
      cmake: Fix global generator path style in --build mode · 83f8e764
      Brad King authored
      Fix the `--build` code path so that `cmSystemTools::SetForceUnixPaths`
      is called with the global generator's path style.  This makes forwarding
      of `--target subdir/src.c.obj` match the slash style the generator
      placed in the build system.
      
      Fixes: #17742
      83f8e764
  9. 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
  10. 26 Jan, 2018 1 commit
  11. 24 Jan, 2018 2 commits
  12. 23 Jan, 2018 1 commit
  13. 15 Jan, 2018 1 commit
  14. 08 Jan, 2018 1 commit
  15. 17 Nov, 2017 1 commit
    • Aaron Orenstein's avatar
      Performance: Improve efficiency of source file lookup in cmMakefile · 4a6348db
      Aaron Orenstein authored
      This reintroduces the change from commit v3.10.0-rc1~69^2 (Performance:
      Improve efficiency of source file lookup in cmMakefile, 2017-08-17) with
      some corrections.  The original was rolled back by commit
      v3.10.0-rc1~52^2~1 (Revert "Performance: ...", 2017-09-25) due to
      incompatibilities found.  The rollback was followed-up by addition of a
      test for the offending case, and this revision passes the test.
      4a6348db
  16. 23 Oct, 2017 1 commit
    • Matthias Männich's avatar
      Replace cmArray{Begin,End,Size} by their standard counterparts · 57132765
      Matthias Männich authored
      std::{begin,end} are part of C++11, std::{cbegin,cend} are part of C++14
      and an standard compliant implementation has been introduced within the
      'cm' namespace: cm::{cbegin,cend}.
      
      std::size is only part of C++17, hence exposing a compliant implementation
      within namespace cm (cm::size).
      
      where possible, the standard implementations are reused.
      57132765
  17. 19 Oct, 2017 1 commit
    • Brad King's avatar
      Add infrastructure for generators to select a build tool instance · 314613d1
      Brad King authored
      Add cache entry `CMAKE_GENERATOR_INSTANCE` to hold the instance location
      persistently across re-runs of CMake in a given build tree.
      
      For now we reject the option by default if explicitly set.  It will be
      implemented on a per-generator basis.  Pass the setting into try_compile
      project generation.  Add a RunCMake.GeneratorInstance test to cover
      basic use cases for the option.  Verify that `CMAKE_GENERATOR_INSTANCE`
      is empty by default, and that it is rejected when the generator does not
      support a user setting.
      
      Issue: #17268
      314613d1
  18. 13 Oct, 2017 1 commit
  19. 27 Sep, 2017 1 commit
    • Brad King's avatar
      try_compile: Simplify generator platform and toolset propagation · 29849376
      Brad King authored
      We don't need to save the `CMAKE_GENERATOR_{PLATFORM,TOOLSET}` values
      from the cache back into the `cmake` instance.  They were used only to
      propagate the settings into `cmake` instances for `try_compile`, but we
      already have their values in the `cmMakefile`'s variables anyway.  In
      fact those variables are the ones we actually give to the generators.
      29849376
  20. 25 Sep, 2017 1 commit
  21. 15 Sep, 2017 1 commit
  22. 12 Sep, 2017 1 commit
  23. 24 Aug, 2017 1 commit
  24. 22 Aug, 2017 1 commit
  25. 26 May, 2017 1 commit
  26. 08 May, 2017 2 commits
  27. 19 Apr, 2017 1 commit
  28. 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
  29. 24 Mar, 2017 1 commit
  30. 06 Mar, 2017 1 commit
    • Ben Boeckel's avatar
      cmWorkingDirectory: use the new class · aba92ffd
      Ben Boeckel authored
      These functions just need to change the directory for a block of code
      and then go back to the caller's expected location. Use
      cmWorkingDirectory to ensure that all return paths are handled.
      aba92ffd
  31. 13 Feb, 2017 2 commits
  32. 16 Dec, 2016 1 commit
    • Iyyappa Murugandi's avatar
      VS: Use Visual Studio Installer to locate VS 2017 · c93e85d8
      Iyyappa Murugandi authored
      VS 2017 and later may no longer populate the Windows Registry entries
      CMake has traditionally used to find the VS installations.  This is
      because VS now supports having multiple installations of the same
      version.  The Visual Studio Installer tool provides a COM interface we
      can query to locate installations.
      c93e85d8
  33. 29 Nov, 2016 1 commit
  34. 17 Nov, 2016 1 commit
  35. 08 Nov, 2016 1 commit
  36. 24 Oct, 2016 1 commit
  37. 21 Oct, 2016 1 commit