1. 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
  2. 10 Nov, 2014 1 commit
    • Daniele E. Domenichelli's avatar
      Fix link line order when shared libraries are de-duplicated · 4db31095
      Daniele E. Domenichelli authored
      Since commit v3.1.0-rc1~227^2~1 (De-duplicate shared library targets in
      generated link lines, 2014-07-30) we de-duplicate shared library targets
      on the link line.  However, some toolchains will fail linking if an
      executable is linking to a shared library that is not used directly and
      a static library that depends on the shared one.  The linker may not
      keep the reference to the shared library the first time and then the
      symbols needed by the static library may not be found.
      
      Fix this by reversing the direction of the for loop that removes the
      duplicate shared libraries, in order to ensure that the last occurrence
      of the library is left instead of the first one.
      
      Extend Tests/Dependency with a case covering this behavior.  Create an
      executable that links to a shared library and a static library but only
      needs the shared library as a dependency of the static library.
      
      Co-Author: Brad King <brad.king@kitware.com>
      4db31095
  3. 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
      77543bde
    • 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/ \+$//'
      7bbaa428
  4. 25 Aug, 2010 1 commit
    • Brad King's avatar
      Honor strong intra-component target dependencies · adb58d5e
      Brad King authored
      Strong dependencies (created by add_dependencies) must be honored when
      linearizing a strongly-connected component of the target dependency
      graph.  The initial graph edges have strong/weak labels and can contain
      cycles that do not consist exclusively of strong edges.  The final graph
      never contains cycles so all edges can be strong.
      adb58d5e
  5. 01 Sep, 2009 1 commit
    • Brad King's avatar
      Test link multiplicity · 0cfd8c41
      Brad King authored
      This tests the LINK_INTERFACE_MULTIPLICITY property for a cycle of three
      static libraries that must be scanned three times to link properly.
      0cfd8c41
  6. 08 Jul, 2009 1 commit
  7. 07 Aug, 2008 1 commit
    • Brad King's avatar
      ENH: Test fake circular dependency case · c76f3ae5
      Brad King authored
      A recent change fixed a case in which CMake incorrectly diagnosed a
      circular dependency involving a non-linkable executable target.  This
      adds a test for that case.
      c76f3ae5
  8. 23 Apr, 2008 1 commit
  9. 25 Mar, 2008 1 commit
  10. 08 Feb, 2008 1 commit
  11. 07 Feb, 2008 1 commit
  12. 06 Feb, 2008 1 commit
  13. 04 Apr, 2007 1 commit
  14. 08 Jun, 2005 1 commit
  15. 01 Nov, 2004 1 commit
  16. 10 May, 2002 1 commit
    • Amitha Perera's avatar
      BUG: Correct some of the dependency analysis code. · 0e6b39e5
      Amitha Perera authored
      - Make sure the original link line is untouched
      - Avoid duplicating the link line when supporting version < 1.4
      - Make sure the cyclic dependencies and such are output correctly in
        complicated cases.
      - Avoid outputing dependencies that are already satisfied on the original
        link line when possible.
      0e6b39e5
  17. 03 May, 2002 1 commit
  18. 02 May, 2002 1 commit
  19. 01 May, 2002 3 commits