1. 20 Aug, 2019 1 commit
  2. 17 Aug, 2019 1 commit
  3. 14 Aug, 2019 1 commit
  4. 10 Aug, 2019 1 commit
    • Sebastian Holtermann's avatar
      cmStringAlgorithms: Add cmStrToLong and cmStrToULong · 935fbe0b
      Sebastian Holtermann authored
      This adds the following functions to cmStringAlgorithms:
      - `cmStrToLong`: moved from `cmSystemTools::StringToLong`
      - `cmStrToULong`: moved from `cmSystemTools::StringToULong`
      
      Overloads of the given functions for `std::string` are added as well.
      935fbe0b
  5. 09 Aug, 2019 1 commit
  6. 08 Aug, 2019 1 commit
    • Kasper Laudrup's avatar
      Use registry setting for removal retry count and delay · 57295803
      Kasper Laudrup authored
      Instead of hardcoding the amount of retries and the time to sleep
      between them when removing directories on Windows, use the setting
      potentially present in the registry instead. This setting is already
      used when retrying moving directories.
      57295803
  7. 05 Aug, 2019 2 commits
  8. 29 Jul, 2019 1 commit
  9. 28 Jul, 2019 4 commits
  10. 25 Jul, 2019 1 commit
  11. 24 Jul, 2019 1 commit
  12. 04 Jul, 2019 1 commit
  13. 29 May, 2019 1 commit
  14. 23 May, 2019 2 commits
  15. 22 May, 2019 2 commits
  16. 21 May, 2019 1 commit
  17. 13 May, 2019 1 commit
    • Sebastian Holtermann's avatar
      cmSystemTools: Add ExpandedListArgument and ExpandedLists methods · cdff7f4e
      Sebastian Holtermann authored
      Changes
      -------
      
      In `cmSystemTools` this
      - renames the method `ExpandList` to `ExpandLists` and makes it iterator based
      
      and adds the methods
      - `std::vector<std::string> ExpandedLists(InputIt first, InputIt last)`
      - `std::vector<std::string> ExpandedListArgument(const std::string& arg,
                                                             bool emptyArgs)`
      
      Both return the  `std::vector<std::string>` instead of taking a return vector
      reference like `cmSystemTools::ExpandLists` and
      `cmSystemTools::ExpandListArgument`.
      
      Motivation
      ----------
      
      Since C++17 return value optimization is mandatory, so returning a
      `std:vector<std::string>` from a function should be (at least) as fast as
      passing a return vector reference to the function.
      
      The new methods can replace `cmSystemTools::ExpandLists` and
      `cmSystemTools::ExpandListArgument` in many cases, which leads to
      shorter and simpler syntax.
      
      E.g. the commonly used pattern
      ```
        if (const char* value = X->GetProperty("A_KEY_STRING")) {
          std::vector<std::string> valuesList;
          cmSystemTools::ExpandListArgument(value, valuesList);
          for (std::string const& i : valuesList) {
            doSomething(i);
          }
        }
      ```
      becomes
      ```
        if (const char* value = X->GetProperty("A_KEY_STRING")) {
          for (std::string const& i :
            cmSystemTools::ExpandedListArgument(value)) {
            doSomething(i);
          }
        }
      ```
      cdff7f4e
  18. 02 May, 2019 1 commit
    • Brad King's avatar
      Ensure stdin, stdout, and stderr pipes are always open · c85524a9
      Brad King authored
      On non-Windows platforms libuv assumes that file descriptors 0-2 are
      always used for standard pipes and never for anything else.  Otherwise,
      libuv may re-use one of these descriptors and then fail an assertion
      when closing it.  Similarly, On Windows platforms our ConsoleBuf
      implementation assumes that the standard handles are always open.
      
      If CMake is run with any standard pipes closed, open them with
      `/dev/null` or `NUL` to satisfy these assumptions.
      
      Fixes: #19219
      c85524a9
  19. 27 Apr, 2019 1 commit
  20. 11 Apr, 2019 1 commit
  21. 19 Mar, 2019 1 commit
  22. 18 Mar, 2019 1 commit
    • Bartosz Kosiorek's avatar
      cmake: Don't interrupt archive creation if unable to read a file. · 8634576d
      Bartosz Kosiorek authored
      Rationale:
      Currently during creation of archive by 'tar',
      if error appears, it interrupt archive creation.
      As a result only part of files are archived
      
      This behaviour is not consistent with 'copy_directory', native 'tar'
      and other command behaviour.
      With this Merge Request this behaviour is fixed.
      8634576d
  23. 21 Feb, 2019 1 commit
  24. 20 Feb, 2019 2 commits
  25. 15 Feb, 2019 2 commits
  26. 11 Feb, 2019 1 commit
  27. 07 Feb, 2019 2 commits
  28. 06 Feb, 2019 2 commits
  29. 02 Feb, 2019 1 commit
  30. 30 Jan, 2019 1 commit