1. 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'
      7a649111
  2. 08 Feb, 2016 1 commit
  3. 22 Jan, 2015 1 commit
  4. 08 Jan, 2015 1 commit
    • Clinton Stimpson's avatar
      Encoding: Modify tests to work using non-ascii paths. · 9a8ab866
      Clinton Stimpson authored
      For complex*, CustomCommand and OutDir tests, non-ascii paths
      are avoided in test code by using relative paths, and setting
      the working when running the test.  This also avoids the
      need to internationalize the test code.
      
      For RunCMake.GeneratorExpression, use a UTF-8 encoding in
      file(STRINGS) to retrieve the compiled absolute path correctly.
      9a8ab866
  5. 23 Oct, 2013 1 commit
    • Brad King's avatar
      Drop compatibility with CMake < 2.4 · 7d47c693
      Brad King authored
      Drop all behavior activated by setting CMAKE_BACKWARDS_COMPATIBILITY to
      a value lower than 2.4, and generate an error when projects or the user
      attempt to do so.  In the error suggest using a CMake 2.8.x release.
      
      Teach cmake_minimum_required to warn about projects that do not require
      at least CMake 2.4.  They are not supported by CMake >= 3.0.
      
      Replace the documentation of CMAKE_BACKWARDS_COMPATIBILITY with a
      reference to policy CMP0001.
      7d47c693
  6. 04 Mar, 2013 1 commit
  7. 13 Aug, 2012 3 commits
    • Kitware Robot's avatar
      Remove CMake-language block-end command arguments · 9db31162
      Kitware Robot authored
      Ancient versions of CMake required else(), endif(), and similar block
      termination commands to have arguments matching the command starting the
      block.  This is no longer the preferred style.
      
      Run the following shell code:
      
      for c in else endif endforeach endfunction endmacro endwhile; do
          echo 's/\b'"$c"'\(\s*\)(.\+)/'"$c"'\1()/'
      done >convert.sed &&
      git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' |
      egrep -z -v '^(Utilities/cm|Source/kwsys/)' |
      egrep -z -v 'Tests/CMakeTests/While-Endwhile-' |
      xargs -0 sed -i -f convert.sed &&
      rm convert.sed
      9db31162
    • 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
  8. 23 Dec, 2011 3 commits
  9. 20 Dec, 2010 1 commit
  10. 30 Oct, 2009 1 commit
  11. 08 Jul, 2009 1 commit
  12. 21 Nov, 2008 1 commit
  13. 20 Nov, 2008 1 commit
  14. 19 Nov, 2008 1 commit
  15. 18 Nov, 2008 1 commit
  16. 20 Aug, 2008 1 commit
    • Brad King's avatar
      ENH: Add if(TARGET) command · fff812db
      Brad King authored
      It is useful to be able to test if a target has been created.  Often
      targets are created only inside conditions.  Rather than storing the
      result of the condition manually for testing by other parts of the
      project, it is much easier for the other parts to just test for the
      target's existence.  This will also be useful when find-modules start
      reporting results with IMPORTED targets and projects want to test if a
      certain target is available.
      fff812db
  17. 07 Feb, 2008 1 commit
  18. 19 Nov, 2007 1 commit
  19. 16 May, 2007 1 commit
  20. 09 May, 2007 1 commit
  21. 01 Feb, 2007 1 commit
  22. 19 Oct, 2006 1 commit
  23. 05 Oct, 2006 2 commits
  24. 02 Oct, 2006 2 commits
  25. 15 Sep, 2006 1 commit
  26. 03 Aug, 2006 1 commit
  27. 01 Aug, 2006 1 commit
  28. 23 May, 2006 1 commit
  29. 17 Apr, 2006 2 commits
  30. 22 Mar, 2006 1 commit
  31. 25 Jan, 2006 1 commit
  32. 17 Jan, 2006 2 commits