CMakeFindDependencyMacro: Convert documentation to bracket comment

This commit is contained in:
Brad King
2017-09-08 10:30:24 -04:00
parent d4f58a9cd8
commit 07a05079d3
+17 -17
View File
@@ -1,23 +1,23 @@
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.
#.rst:
# CMakeFindDependencyMacro
# -------------------------
#
# ::
#
# find_dependency(<dep> [...])
#
#
# ``find_dependency()`` wraps a :command:`find_package` call for a package
# dependency. It is designed to be used in a <package>Config.cmake file, and it
# forwards the correct parameters for QUIET and REQUIRED which were passed to
# the original :command:`find_package` call. It also sets an informative
# diagnostic message if the dependency could not be found.
#
# Any additional arguments specified are forwarded to :command:`find_package`.
#
#[=======================================================================[.rst:
CMakeFindDependencyMacro
-------------------------
::
find_dependency(<dep> [...])
``find_dependency()`` wraps a :command:`find_package` call for a package
dependency. It is designed to be used in a <package>Config.cmake file, and it
forwards the correct parameters for QUIET and REQUIRED which were passed to
the original :command:`find_package` call. It also sets an informative
diagnostic message if the dependency could not be found.
Any additional arguments specified are forwarded to :command:`find_package`.
#]=======================================================================]
macro(find_dependency dep)
if (NOT ${dep}_FOUND)