1. 16 Sep, 2014 1 commit
    • Brad King's avatar
      Tests: Fix CMP0054 warnings · fa7d47ac
      Brad King authored
      Hack the CMP0054 warning locally to be an error and run the test suite.
      Resolve CMP0054 in Tests/* code as appropriate for each case.
      fa7d47ac
  2. 13 Aug, 2012 2 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
  3. 08 Jul, 2009 1 commit
  4. 25 Mar, 2009 1 commit
    • Brad King's avatar
      BUG: Fix CMAKE_CURRENT_LIST_FILE in macros · 5f468692
      Brad King authored
      The value of CMAKE_CURRENT_LIST_FILE is supposed to be the list file
      currently being executed.  Before macros were introduced this was always
      the context of the argument referencing the variable.
      
      Our original implementation of macros replaced the context of command
      arguments inside the macro with that of the arguments of the calling
      context.  This worked recursively, but only worked when macros had at
      least one argument.  Furthermore, it caused parsing errors of the
      arguments to report the wrong location (calling context instead of line
      with error).
      
      The commit "Improve context for errors in macros" fixed the latter bug
      by keeping the lexical context of command arguments in macros.  It broke
      evaluation of CMAKE_CURRENT_LIST_FILE because the calling context was no
      longer preserved in the argument referencing the variable.  However,
      since our list file processing now maintains the proper value of
      CMAKE_CURRENT_LIST_FILE with dynamic scope we no longer need the context
      of the argument and can just evaluate the variable normally.
      5f468692
  5. 25 Mar, 2008 1 commit
  6. 18 May, 2007 1 commit
  7. 25 Oct, 2006 1 commit
  8. 31 Jul, 2005 2 commits
  9. 17 Jun, 2005 1 commit
  10. 16 Jun, 2005 1 commit