Browse Source

FindImageMagick: Fix documentation syntax in usage example

Brad King 2 years ago
parent
commit
71f9c1943d
1 changed files with 4 additions and 10 deletions
  1. 4 10
      Modules/FindImageMagick.cmake

+ 4 - 10
Modules/FindImageMagick.cmake

@@ -96,19 +96,13 @@ Result Variables
   Full path to <component> libraries.
 
 
-Example Usages:
-^^^^^^^^^^^^^^^
+Example Usage
+^^^^^^^^^^^^^
 
-  find_package(ImageMagick)
-  find_package(ImageMagick COMPONENTS convert)
-  find_package(ImageMagick COMPONENTS convert mogrify display)
-  find_package(ImageMagick COMPONENTS Magick++)
-  find_package(ImageMagick COMPONENTS Magick++ convert)
+.. code-block:: cmake
 
+  find_package(ImageMagick COMPONENTS Magick++)
   target_link_libraries(example PRIVATE ImageMagick::Magick++)
-
-Note that the standard :command:`find_package` features are supported (i.e.,
-``QUIET``, ``REQUIRED``, etc.).
 #]=======================================================================]
 
 find_package(PkgConfig QUIET)