mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Help: More syntax highlighting for literal blocks
Covers almost all blocks containing actual code, except: * Parsed-literal blocks can't be highlighted, including many command summaries and substitution-heavy docs like find_... commands. This is a Sphinx limitation. * Code with errors, like CMP0049, DEPLOYMENT_ADDITIONAL_FILES, DEPLOYMENT_REMOTE_DIRECTORY, @PACKAGE_INIT@ substitution in the tutorial, bracket arguments/comments in cmake-language.7 and cmake-developer.7. * FindQt4 module, which needs reformatting.
This commit is contained in:
@@ -43,7 +43,9 @@ If component ``Development`` is specified, it implies sub-components
|
||||
|
||||
To ensure consistent versions between components ``Interpreter``, ``Compiler``,
|
||||
``Development`` (or one of its sub-components) and ``NumPy``, specify all
|
||||
components at the same time::
|
||||
components at the same time:
|
||||
|
||||
.. code-block:: cmake
|
||||
|
||||
find_package (Python2 COMPONENTS Interpreter Development)
|
||||
|
||||
@@ -472,7 +474,9 @@ This module defines the command ``Python2_add_library`` (when
|
||||
:prop_gbl:`CMAKE_ROLE` is ``PROJECT``), which has the same semantics as
|
||||
:command:`add_library` and adds a dependency to target ``Python2::Python`` or,
|
||||
when library type is ``MODULE``, to target ``Python2::Module`` and takes care
|
||||
of Python module naming rules::
|
||||
of Python module naming rules:
|
||||
|
||||
.. code-block:: cmake
|
||||
|
||||
Python2_add_library (<name> [STATIC | SHARED | MODULE]
|
||||
<source1> [<source2> ...])
|
||||
|
||||
Reference in New Issue
Block a user