Skip to content
Snippets Groups Projects
  1. May 19, 2016
  2. May 18, 2016
  3. May 17, 2016
    • Matthew Hanna's avatar
      AIX,HP: Allow user to override the default runtime path (libpath) · 5a21557b
      Matthew Hanna authored and Brad King's avatar Brad King committed
      The `CMAKE_PLATFORM_REQUIRED_RUNTIME_PATH` is used by CMake to always
      append `-Wl,-blibpath:/usr/lib:/lib` to the link line.  This is needed
      by default on these platforms but needs to be overridden in some use
      cases (e.g. an environment in which one maintains versioned shared
      libraries).  Change our logic to set this value only if it not already
      set by the user, project, or toolchain file.
      5a21557b
  4. May 16, 2016
    • Kitware Robot's avatar
      Revise C++ coding style using clang-format · d9fd2f54
      Kitware Robot authored and Brad King's avatar Brad King committed
      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
    • Roger Leigh's avatar
      FindBoost: Add checks for component-specific headers · c2e8d515
      Roger Leigh authored and Brad King's avatar Brad King committed
      This supplements the existing library checks, to
      cater for the possibility that the libraries are
      present but the headers are not.  This can happen
      when the Boost collections is split up into
      multiple packages and not all are installed,
      and will avoid the checks silently passing when
      the build would subsequently fail.
      c2e8d515
  5. May 14, 2016
  6. May 13, 2016
  7. May 12, 2016
  8. May 11, 2016
  9. May 09, 2016
    • Chuck Atkins's avatar
      HDF5: Refactor the use of compiler wrappers · 00405af0
      Chuck Atkins authored
       * Make work with HDF5 compiler wrappers as the primary compiler (Cray)
       * Accept options used by compiler wrappers instead of just seeding
         search parameters
       * Only search for libraries if the first 2 fail
      00405af0
    • Brad King's avatar
      Remove `//------...` horizontal separator comments · 0ac18d40
      Brad King authored
      Modern editors provide plenty of ways to visually separate functions.
      Drop the explicit comments that previously served this purpose.
      Use the following command to automate the change:
      
          $ git ls-files -z -- \
              "*.c" "*.cc" "*.cpp" "*.cxx" "*.h" "*.hh" "*.hpp" "*.hxx" |
            egrep -z -v "^Source/cmCommandArgumentLexer\." |
            egrep -z -v "^Source/cmCommandArgumentParser(\.y|\.cxx|Tokens\.h)" |
            egrep -z -v "^Source/cmDependsJavaLexer\." |
            egrep -z -v "^Source/cmDependsJavaParser(\.y|\.cxx|Tokens\.h)" |
            egrep -z -v "^Source/cmExprLexer\." |
            egrep -z -v "^Source/cmExprParser(\.y|\.cxx|Tokens\.h)" |
            egrep -z -v "^Source/cmFortranLexer\." |
            egrep -z -v "^Source/cmFortranParser(\.y|\.cxx|Tokens\.h)" |
            egrep -z -v "^Source/cmListFileLexer\." |
            egrep -z -v "^Source/cm_sha2" |
            egrep -z -v "^Source/(kwsys|CursesDialog/form)/" |
            egrep -z -v "^Utilities/(KW|cm).*/" |
            xargs -0 sed -i '/^\(\/\/---*\|\/\*---*\*\/\)$/ {d;}'
      
      This avoids modifying third-party sources and generated sources.
      0ac18d40
    • Anders Bakken's avatar
      FindLua: Add library name for Lua 5.3 on homebrew · 25f34dea
      Anders Bakken authored and Brad King's avatar Brad King committed
      Homebrew installs lua 5.3 like this:
      
          Cellar/lua53/5.3.2_2/lib/liblua.5.3.2.dylib
          Cellar/lua53/5.3.2_2/lib/liblua.5.3.dylib
          lib/liblua.5.3.2.dylib
          lib/liblua.5.3.dylib
      
      Add the `liblua.{$VERSION}` naming scheme to our searched names.
      25f34dea
  10. May 06, 2016
  11. May 03, 2016
  12. May 02, 2016
  13. Apr 29, 2016
    • 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
          IncludeCategories:
            - 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: default avatarDaniel Pfeifer <daniel@pfeifer-mail.de>
      e1c77472
    • Brad King's avatar
      Modules: Remove unused CMakeTestWatcomVersion.c file · d7a5f255
      Brad King authored
      This file has not been used since commit v2.8.10~218^2~7^2 (Watcom:
      Simplify compiler version detection, 2012-08-13).
      d7a5f255
  14. Apr 28, 2016
Loading