mirror of
https://github.com/Kitware/CMake.git
synced 2025-05-08 22:37:04 +08:00
FindCVS: Update documentation
- Module docs format synced with other similar find modules. - Example changed a bit as the found message and path to executable is already output by find_package().
This commit is contained in:
parent
080c1a4e17
commit
ac777ea9f8
@ -5,23 +5,35 @@
|
||||
FindCVS
|
||||
-------
|
||||
|
||||
Find the Concurrent Versions System (CVS).
|
||||
Finds the Concurrent Versions System (CVS).
|
||||
|
||||
The module defines the following variables:
|
||||
Result Variables
|
||||
^^^^^^^^^^^^^^^^
|
||||
|
||||
::
|
||||
This module defines the following variables:
|
||||
|
||||
CVS_EXECUTABLE - path to cvs command line client
|
||||
CVS_FOUND - true if the command line client was found
|
||||
``CVS_FOUND``
|
||||
True if the command-line client was found.
|
||||
|
||||
Example usage:
|
||||
Cache Variables
|
||||
^^^^^^^^^^^^^^^
|
||||
|
||||
The following cache variables may also be set:
|
||||
|
||||
``CVS_EXECUTABLE``
|
||||
Path to ``cvs`` command-line client.
|
||||
|
||||
Examples
|
||||
^^^^^^^^
|
||||
|
||||
Finding CVS and executing it in a process:
|
||||
|
||||
.. code-block:: cmake
|
||||
|
||||
find_package(CVS)
|
||||
if(CVS_FOUND)
|
||||
message("CVS found: ${CVS_EXECUTABLE}")
|
||||
endif()
|
||||
find_package(CVS)
|
||||
if(CVS_FOUND)
|
||||
execute_process(COMMAND ${CVS_EXECUTABLE} --help)
|
||||
endif()
|
||||
#]=======================================================================]
|
||||
|
||||
# CVSNT
|
||||
|
Loading…
x
Reference in New Issue
Block a user