Don't copy find_dependency in configure_package_config_file.

There is not really any need to. Downstreams can either rely on it
being provided by CMake, or copy and distribute it.

Change the documented include for the find_dependency macro.
This commit is contained in:
Stephen Kelly
2013-12-24 01:15:42 +01:00
parent f4f6529354
commit a1d2bda23e
2 changed files with 4 additions and 11 deletions

View File

@@ -375,7 +375,7 @@ dependencies of a package should be found in the ``Config.cmake`` file:
.. code-block:: cmake
include(CMakePackageConfigHelpers)
include(CMakeFindDependencyMacro)
find_dependency(Stats 2.6.4)
include("${CMAKE_CURRENT_LIST_DIR}/ClimbingStatsTargets.cmake")
@@ -392,7 +392,7 @@ be true. This can be tested with logic in the package configuration file:
.. code-block:: cmake
include(CMakePackageConfigHelpers)
include(CMakeFindDependencyMacro)
find_dependency(Stats 2.6.4)
include("${CMAKE_CURRENT_LIST_DIR}/ClimbingStatsTargets.cmake")