1. 18 Apr, 2018 1 commit
  2. 13 Aug, 2012 1 commit
    • 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
  3. 04 Jan, 2011 1 commit
    • Brad King's avatar
      Allow users to specify defaults for unset policies · a364daf1
      Brad King authored
      Check CMAKE_POLICY_DEFAULT_CMP<NNNN> for a default when policy CMP<NNNN>
      would otherwise be left unset.  This allows users to set policies on the
      command line when the project does not set them.  One may do this to
      quiet warnings or test whether a project will build with new behavior
      without modifying code.  There may also be cases when users want to
      build an existing project release using new behavior for policies
      unknown to the project at the time of the release.
      a364daf1
  4. 22 Jan, 2009 2 commits
    • Brad King's avatar
      ENH: Isolate policy changes in included scripts · c332e0bf
      Brad King authored
      Isolation of policy changes inside scripts is important for protecting
      the including context.  This teaches include() and find_package() to
      imply a cmake_policy(PUSH) and cmake_policy(POP) around the scripts they
      load, with a NO_POLICY_SCOPE option to disable the behavior.  This also
      creates CMake Policy CMP0011 to provide compatibility.  See issue #8192.
      c332e0bf
    • Brad King's avatar
      ENH: Better policies for functions and macros · 3028ca75
      Brad King authored
      This teaches functions and macros to use policies recorded at creation
      time when they are invoked.  It restores the policies as a weak policy
      stack entry so that any policies set by a function escape to its caller
      as before.
      3028ca75