1. 13 Jun, 2019 1 commit
  2. 21 May, 2019 1 commit
  3. 18 Apr, 2019 1 commit
  4. 15 Mar, 2019 1 commit
    • Robert Maynard's avatar
      export: Disable PACKAGE mode user package registry by default · 9bede5c4
      Robert Maynard authored
      The user package registry populated by the `export()` command causes
      side effects outside the build and source directories.  Such effects
      should be opt-in rather than op-out.  Introduce a policy to change
      default behavior of `export(PACKAGE)` to do nothing.
  5. 16 Jan, 2019 1 commit
  6. 14 Nov, 2018 1 commit
  7. 14 Aug, 2018 1 commit
  8. 01 Jun, 2018 1 commit
  9. 21 Nov, 2017 2 commits
  10. 15 Sep, 2016 1 commit
    • Pierluigi Taddei's avatar
      find_package: Optionally sort globbed directories in a meaningful order · 31be918b
      Pierluigi Taddei authored
      Add `CMAKE_FIND_PACKAGE_SORT_{ORDER,DIRECTION}` variables to specify
      sort order and direction.
      When multiple package with the same name have been found in the same
      location sorting option can be used to force a specific version to be
      loaded (e.g. libA_1.12.0 instead of libA_1.1.0).  Currently sorting by
      NAME and by NATURAL order have been implemented.
      Natural ordering makes use of the `strverscmp(3)` ordering.
  11. 24 Aug, 2016 1 commit
  12. 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'
  13. 14 May, 2015 1 commit
  14. 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.
  15. 11 Aug, 2014 1 commit
  16. 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)
      * CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY that disables the User Package
        Registry in all the find_package calls.
        System Package Registry in all the find_package calls.
      Update documentation and unit tests.
    • 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.
    • 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.
  17. 22 Feb, 2013 1 commit
  18. 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
    • 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
  19. 23 May, 2012 1 commit
  20. 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
      and this will do the right thing.
    • 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.
  21. 13 Mar, 2012 1 commit
  22. 10 Mar, 2012 1 commit
  23. 07 Mar, 2012 2 commits
  24. 05 Aug, 2011 1 commit
  25. 01 Aug, 2011 1 commit
  26. 23 Jun, 2011 1 commit
  27. 08 Jun, 2011 1 commit
  28. 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.
  29. 13 Apr, 2011 1 commit
  30. 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.
  31. 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
    • 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
      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.
  32. 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
  33. 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>".