1. 07 Aug, 2017 1 commit
  2. 26 May, 2017 1 commit
  3. 27 Jul, 2016 1 commit
    • Daniel Pfeifer's avatar
      Use string(APPEND) in Tests · 7a649111
      Daniel Pfeifer authored
      Automate with:
      find Tests -type f -print0 | xargs -0 perl -i -0pe \
      's/set\(([a-zA-Z0-9_]+)(\s+)"\$\{\1\}([^"])/string(APPEND \1\2"\3/g'
  4. 09 Jun, 2016 1 commit
  5. 06 Jun, 2016 1 commit
  6. 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.
  7. 03 May, 2016 1 commit
    • Brad King's avatar
      Tests: Fix Plugin test include order · a20d7d48
      Brad King authored
      Fix the order accidentally broken by commit e1c77472 (Format include
      directive blocks and ordering with clang-format, 2016-04-29).  Include
      the KWSys header first in its own block so that it is not moved by tools
      that re-order includes.  It must be included first to define large file
      support macros consistently.
  8. 29 Apr, 2016 1 commit
    • Brad King's avatar
      Format include directive blocks and ordering with clang-format · e1c77472
      Brad King authored
      Sort include directives within each block (separated by a blank line) in
      lexicographic order (except to prioritize `sys/types.h` first).  First
      run `clang-format` with the config file:
          SortIncludes: false
      Commit the result temporarily.  Then run `clang-format` again with:
          SortIncludes: true
            - Regex:    'sys/types.h'
              Priority: -1
      Commit the result temporarily.  Start a new branch and cherry-pick the
      second commit.  Manually resolve conflicts to preserve indentation of
      re-ordered includes.  This cleans up the include ordering without
      changing any other style.
      Use the following command to run `clang-format`:
          $ git ls-files -z -- \
              '*.c' '*.cc' '*.cpp' '*.cxx' '*.h' '*.hh' '*.hpp' '*.hxx' |
            egrep -z -v '(Lexer|Parser|ParserHelper)\.' |
            egrep -z -v '^Source/cm_sha2' |
            egrep -z -v '^Source/(kwsys|CursesDialog/form)/' |
            egrep -z -v '^Utilities/(KW|cm).*/' |
            egrep -z -v '^Tests/Module/GenerateExportHeader' |
            egrep -z -v '^Tests/RunCMake/CommandLine/cmake_depends/test_UTF-16LE.h' |
            xargs -0 clang-format -i
      This selects source files that do not come from a third-party.
      Inspired-by: Daniel Pfeifer's avatarDaniel Pfeifer <daniel@pfeifer-mail.de>
  9. 10 Mar, 2016 1 commit
  10. 03 Sep, 2015 1 commit
    • Brad King's avatar
      Tests: Fix Plugin test on Watcom compiler · d2b8229d
      Brad King authored
      The Watcom compiler does not have stream operators for std::string.
      Since KWSys no longer provides the operators for us, just use c_str()
      to avoid the problem and allow the test to compile on Watcom.
  11. 01 Sep, 2015 1 commit
    • Raphael Kubo da Costa's avatar
      Tests: Use a less strict regular expression to look for "SONAME" · 21d99aa3
      Raphael Kubo da Costa authored
      Commit 899458ab (Tests: Cover NO_SONAME property for SHARED libraries,
      2015-08-20) introduced a few new ExportImport tests, and the
      check_lib_{no}soname.cmake scripts that parse readelf(1)'s output.
      Make the regular expression matching the SONAME line output by readelf
      less strict, as the output format varies across implementations: GNU
      binutils' readelf is the only one to write each ELF header within
      parentheses (which the previous regular expression expected).  The new
      tests were thus failing when either Fedora's elfutils (eu-readelf) or
      elftoolchain's readelf (present on recent FreeBSD versions) were being
      used, as they both list the headers without parentheses.
      The same issue also affected Tests/Plugin's check_mod_soname.cmake, so
      fix that one as well -- the only reason the test was not failing is that
      it tested that the regular expression did not match, which was always
      the case with a non-binutils readelf.
  12. 31 Aug, 2015 1 commit
  13. 20 Aug, 2015 1 commit
  14. 25 Apr, 2014 1 commit
  15. 24 Oct, 2013 1 commit
    • Stephen Kelly's avatar
      Refactor the Plugin test. · 30ff6cf9
      Stephen Kelly authored
      Policy CMP0024 was introduced to disallow the include() of a file
      generated by export().
      Use ExternalProject to test the plugins after building.
  16. 13 Aug, 2012 2 commits
    • Kitware Robot's avatar
      Convert CMake-language commands to lower case · 77543bde
      Kitware Robot authored
      Ancient CMake versions required upper-case commands.  Later command
      names became case-insensitive.  Now the preferred style is lower-case.
      Run the following shell code:
      cmake --help-command-list |
      grep -v "cmake version" |
      while read c; do
          echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g'
      done >convert.sed &&
      git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' |
      egrep -z -v '^(Utilities/cm|Source/kwsys/)' |
      xargs -0 sed -i -f convert.sed &&
      rm convert.sed
    • 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/ \+$//'
  17. 30 Apr, 2012 1 commit
    • Brad King's avatar
      Test NO_SONAME property (#13155) · fdb3f878
      Brad King authored
      Teach the Plugin test to check that the NO_SONAME target property works
      as documented.  Check that the IMPORTED targets are written with the
      correct properties.  When readelf is available use it to check the
      actual binary files for SONAME fields.
  18. 08 Jul, 2009 1 commit
  19. 15 Jun, 2009 1 commit
    • Brad King's avatar
      BUG: Create an exe's implib output dir for VS · f4b3bdc6
      Brad King authored
      If an executable marks symbols with __declspec(dllexport) then VS
      creates an import library for it.  However, it forgets to create the
      directory that will contain the import library if it is different from
      the location of the executable.  We work around this VS bug by creating
      a pre-build event on the executable target to make the directory.
  20. 25 Mar, 2008 1 commit
  21. 10 Sep, 2007 1 commit
  22. 19 Apr, 2007 1 commit
  23. 17 Apr, 2007 4 commits