1. 22 Aug, 2012 1 commit
  2. 14 Aug, 2012 1 commit
  3. 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
  4. 20 Jul, 2012 2 commits
    • Brad King's avatar
      find_library: Fix mixed lib->lib64 (non-)conversion cases (#13419) · 733726ed
      Brad King authored
      When a search path contains multiple "lib/" instances we previously
      converted all or none.  This fails for cases where only some of the
      multiple instances must be converted.  Teach AddArchitecturePaths to
      generate all combinations that exist.  Uncomment these cases in the
      CMakeOnly.find_library test now that they work.
      733726ed
    • Brad King's avatar
      find_library: Add test covering lib->lib64 cases · 1fe4b82a
      Brad King authored
      Add a "CMakeOnly.find_library" test covering various cases involving
      lib->lib64 (non-)conversion.  Comment out cases involving mixed path
      components "lib" and "lib64", such as lib/A/lib64 and lib64/A/lib, as
      these are known to be broken currently.
      1fe4b82a
  5. 31 May, 2012 1 commit
  6. 15 Apr, 2012 1 commit
  7. 20 Mar, 2012 1 commit
    • David Cole's avatar
      Tests: Relax restrictions on version variable contents · a5ee6285
      David Cole authored
      Our only expectation of version number variables should be that
      they begin with a decimal digit for VERSION_LESS, VERSION_EQUAL
      and VERSION_GREATER comparison purposes. If people put extra
      blah blah after a version number like "1.2.3 (this is some super
      special extra information about our funky proprietary build of
      the official 1.2.3 release)" then we should be ok with that.
      
      So: now we have the following expectations for version number
      variable content for the purposes of the AllFindModules test:
      
       - it should start with a decimal digit (match "^[0-9]")
       - it should not be empty
       - it should not be VERSION_EQUAL 0
       - it should not be NOT VERSION_GREATER 0
      a5ee6285
  8. 02 Mar, 2012 1 commit
  9. 01 Mar, 2012 1 commit
  10. 29 Feb, 2012 1 commit
  11. 18 Feb, 2012 2 commits
  12. 17 Feb, 2012 1 commit
  13. 13 Feb, 2012 1 commit
  14. 08 Feb, 2012 1 commit
    • Brad King's avatar
      Add CheckLanguage module · 5db99e87
      Brad King authored
      Define a "check_language(<lang>)" macro to test whether <lang> can be
      enabled.  Cache the result in CMAKE_<lang>_COMPILER.  Add a test case
      covering expected results.
      5db99e87
  15. 01 Feb, 2012 1 commit
  16. 30 Jan, 2012 1 commit
  17. 26 Jan, 2012 3 commits
  18. 25 Jan, 2012 1 commit
  19. 18 Jan, 2012 1 commit
  20. 17 Jan, 2012 1 commit
  21. 16 Jan, 2012 2 commits
  22. 13 Jan, 2012 2 commits
    • Brad King's avatar
      Tolerate cycles in shared library link interfaces (#12647) · 8e756d2b
      Brad King authored
      Since commit 183b9509 (Follow all dependencies of shared library private
      dependencies, 2011-12-14) we honor LINK_INTERFACE_LIBRARIES when
      following dependent shared libraries.  The link interface properties may
      form a cycle if set incorrectly by a project.  Furthermore, the property
      LINK_DEPENDENT_LIBRARIES may form a cycle if set incorrectly by hand
      (though CMake should never generate one).  In either case, do not follow
      the cycle forever when following the dependent shared library closure.
      We only need to add dependency edges to the constraint graph once.
      
      Add "LinkInterfaceLoop" test to cover this case.
      8e756d2b
    • Brad King's avatar
      Add infrastructure for CMake-only tests · 9a20abf0
      Brad King authored
      Some tests only need to run CMake to configure and generate a build
      tree, but not actually perform the build.  Add a new "Tests/CMakeOnly"
      directory dedicated for this purpose.  Add a helper script to drive each
      test by creating a fresh build tree and running CMake on it.  Add macro
      "add_CMakeOnly_test" to help create tests using the script.
      9a20abf0