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. 14 May, 2015 1 commit
  3. 17 Apr, 2015 1 commit
    • Stephen Kelly's avatar
      FPHSA: Always populate the ExactCase_FOUND variable (#15412). · d1a6d15b
      Stephen Kelly authored
      The UPPERCASE name was inconsistent with config-packages, the
      find_dependency macro, and even FPHSA itself, which expects
      components to be specified with names matching ExactCase.
      
      The FOUND_VAR was only permitted to have two possible values, and
      now both are set for compatibility.  Document it as obsolete, and
      adjust the code for the same.  Users of the variable should just
      remove it.
      d1a6d15b
  4. 11 Aug, 2014 1 commit
  5. 12 May, 2014 3 commits
    • Daniele E. Domenichelli's avatar
      Allow the Package Registry to be disabled (#14849) · be8ae960
      Daniele E. Domenichelli authored
      When a project is packaged for redistribution the local package
      registries should not be updated or consulted.  They are for developers.
      
      Add variables to disable use of package registries globally:
      
      * CMAKE_EXPORT_NO_PACKAGE_REGISTRY that disables the export(PACKAGE)
        command
      * CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY that disables the User Package
        Registry in all the find_package calls.
      * CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY that disables the
        System Package Registry in all the find_package calls.
      
      Update documentation and unit tests.
      be8ae960
    • Brad King's avatar
      Tests: Improve FindPackageTest for in-source builds · d09fda5d
      Brad King authored
      Use a different directory name for the Exporter build tree so that it is
      out-of-source even when the main test is in-source.
      d09fda5d
    • Brad King's avatar
      Tests: Improve FindPackageTest exported package version · ac24a1c0
      Brad King authored
      Add a random version component so that the test is unlikely to conflict
      with other tests of the same CMake version on the same machine.
      ac24a1c0
  6. 22 Feb, 2013 1 commit
  7. 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
  8. 23 May, 2012 1 commit
  9. 19 Mar, 2012 2 commits
    • Alexander Neundorf's avatar
      add macro check_required_components() to configure_package_config_file() · d81d83c2
      Alexander Neundorf authored
      As discussed on cmake-developers, this patch adds a macro
      check_required_components() to the file configured via
      configure_package_config_file(), so for proper handling
      of components in Config.cmake files users can simply call
      
      check_required_components(PackageName)
      
      and this will do the right thing.
      
      Alex
      d81d83c2
    • Alexander Neundorf's avatar
      FPHSA(): add HANDLE_COMPONENTS option · b15c0b41
      Alexander Neundorf authored
      if the HANDLE_COMPONENTS is used, FPHSA() now also checks all required COMPONENTS,
      i.e. all elements from <name>_FIND_COMPONENTS for which <name>_FIND_REQUIRED_<comp>
      is true, and sets <name>_FOUND only to true if all have been found.
      As discussed on cmake-developers.
      
      Alex
      b15c0b41
  10. 13 Mar, 2012 1 commit
  11. 10 Mar, 2012 1 commit
  12. 07 Mar, 2012 2 commits
  13. 05 Aug, 2011 1 commit
  14. 01 Aug, 2011 1 commit
  15. 23 Jun, 2011 1 commit
  16. 08 Jun, 2011 1 commit
  17. 14 Apr, 2011 1 commit
    • Brad King's avatar
      find_package: Fix system package registry test path conversion · 08b93977
      Brad King authored
      Do not use file(TO_NATIVE_PATH) to compute the value to store in the
      registry.  It is meant for constructing values to be put in shells.
      Since find_package() can use the value with CMake-normalized slashes do
      not bother with any conversion.
      08b93977
  18. 13 Apr, 2011 1 commit
  19. 07 Apr, 2011 1 commit
    • Brad King's avatar
      find_package: Forward component list for recursive calls in modules · 9fc7ea4c
      Brad King authored
      Some find modules call find_package recursively to locate a package
      configuration file for the package instead of searching for individual
      pieces.  Commit 79e9b755 (Help recursive find_package calls in modules,
      2008-10-03) taught find_package to forward the version number and EXACT
      arguments through the recursive call automatically.  Do the same for the
      component list.
      9fc7ea4c
  20. 04 Jan, 2011 2 commits
    • Alexander Neundorf's avatar
      Improve documentation and messages for the new CMP0017 · 7db8db5b
      Alexander Neundorf authored
      This patch incorporates the comments from Brad:
      -some improvements to the documentation of CMP0017
      -make the test QUIETLY search for zlib
      7db8db5b
    • Alexander Neundorf's avatar
      Prefer files from CMAKE_ROOT when including from CMAKE_ROOT · db44848f
      Alexander Neundorf authored
      This patch makes include() and find_package() prefer cmake files
      located in CMAKE_ROOT over those in CMAKE_MODULE_PATH.
      This makes sure that the including file gets that file included
      which it expects, i.e. the one from cmake with which it was tested.
      It only changes behaviour when such an included file exists both
      in CMAKE_MODULE_PATH and in CMAKE_ROOT.
      This comes together with a new policy CMP0017, with default
      behaviour it behaves as it always did, but warns.
      With NEW behaviour it includes the file from CMAKE_ROOT
      instead from CMAKE_MODULE_PATH. This fixes (if CMP0017 is set)
      building KDE 4.5 with cmake >= 2.8.3.
      Also a basic test for this policy in included.
      db44848f
  21. 13 Aug, 2010 1 commit
    • Todd Gamblin's avatar
      Teach find_* commands to ignore some paths · 1221581a
      Todd Gamblin authored
      Add platform configuration variable CMAKE_SYSTEM_IGNORE_PATH and user
      configuration variable CMAKE_IGNORE_PATH.  These specify a set of
      directories that will be ignored by all the find commands.  Update
      FindPackageTest so that several cases will fail without a functioning
      CMAKE_IGNORE_PATH.
      1221581a
  22. 23 Apr, 2010 1 commit
    • Brad King's avatar
      Report commit hash in CMake development versions · 03283794
      Brad King authored
      For builds from Git repositories, add "-g<commit>" to the end of the
      version number.  If the source tree is modified, append "-dirty".
      For builds from CVS checkouts, add "-cvs-<branch>".
      03283794
  23. 28 Jan, 2010 1 commit
  24. 04 Nov, 2009 1 commit
  25. 09 Oct, 2009 1 commit
  26. 07 Oct, 2009 1 commit
    • Brad King's avatar
      Fix find_package() when <pkg>_DIR is wrong · 71910b3f
      Brad King authored
      When <pkg>_DIR is set to an incorrect version we search again and store
      the result in the variable, even if it is <pkg>_DIR-NOTFOUND.
      
      There was a bug in the case when the new search does not find anything
      and the old value came from a cache entry with UNINITALIZED type.  The
      command used to try to load a package configuration file from the last
      place searched, and would leave the old wrong value in the entry.  This
      commit fixes the behavior to avoid trying to load a missing file and to
      set the value to <pkg>_DIR-NOTFOUND as expected.
      71910b3f
  27. 01 Sep, 2009 1 commit
    • Brad King's avatar
      Test the user package registry · 07f029d6
      Brad King authored
      We teach the FindPackageTest to build a sample project that stores its
      build tree in the user package registry using export(PACKAGE), and then
      find it with find_package.
      07f029d6
  28. 14 Jan, 2009 1 commit
    • Brad King's avatar
      ENH: Test find_package re-find feature · bb2c0854
      Brad King authored
      Recently we taught find_package to re-find a package if its
      <package>_DIR result variable was set to a location not containing the
      package (instead of reporting an error as before).  This tests the
      feature.
      bb2c0854
  29. 17 Dec, 2008 1 commit
    • Brad King's avatar
      ENH: Teach find_package about more install dirs · 3958b3e1
      Brad King authored
      We now search in
      
        <prefix>/<name>*/
        <prefix>/<name>*/(cmake|CMake)
      
      when looking for package configuration files.  This is useful on Windows
      since the Program Files folder is in CMAKE_SYSTEM_PREFIX_PATH.  These
      paths are the Windows equivalent to the Apple convention application and
      framework paths we already search.  See issue #8264.
      3958b3e1
  30. 16 Dec, 2008 1 commit
    • Brad King's avatar
      ENH: Strengthen FindPackageTest version check · 63e186a8
      Brad King authored
      The previous change to test finding in lib/cmake/<name>* weakened the
      versioned find tests.  Since the lib/cmake paths are searched before
      lib/<name>* paths the previous change skipped requiring the command to
      ignore zot-3.0 when finding zot-3.1.  This change restores that and adds
      zot-4.0 to test the lib/cmake path.
      63e186a8
  31. 09 Dec, 2008 1 commit
    • Brad King's avatar
      ENH: Add useful search locations to find_package · e51969ac
      Brad King authored
      This teaches find_package to search
      
        <prefix>/(share|lib)/cmake/<name>*/
      
      for package configuration files.  Packages that do not already have
      files in a <prefix>/lib/<name>* directory can use this location to avoid
      cluttering the lib directory.
      e51969ac
  32. 03 Oct, 2008 1 commit
    • Brad King's avatar
      ENH: Help recursive find_package calls in modules · 79e9b755
      Brad King authored
      These changes teach find_package to behave nicely when invoked
      recursively inside a find-module for the same package.  The module will
      never be recursively loaded again.  Version arguments are automatically
      forwarded.
      79e9b755
  33. 10 Sep, 2008 2 commits
    • Brad King's avatar
      ENH: Add version comparison to if() command · 4fa96dbf
      Brad King authored
      Provide VERSION_LESS, VERSION_EQUAL, and VERSION_GREATER operators in
      the if() command.  This simplifies component-wise comparison of version
      numbers in the form "major[.minor[.patch[.tweak]]]".
      4fa96dbf
    • Brad King's avatar
      ENH: Improve find_package version numbering · 994262e5
      Brad King authored
      Make the number of version components specified explicitly available.
      Set variables for unspecified version components to "0" instead of
      leaving them unset.  This simplifies version number handling for find-
      and config-modules.  Also support a fourth "tweak" version component
      since some packages use them.
      994262e5