mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-08 16:50:48 +00:00
Tutorial: Move multi-config install note to the first exercise
The context is needed when running all exercises in this step. Revise both this note and its mirror for `ctest` in Step 7 to cross-reference the relevant flags.
This commit is contained in:
@@ -187,6 +187,14 @@ No special configuration is needed, configure and build as usual.
|
|||||||
|
|
||||||
We can verify the installation is correct with :option:`cmake --install`.
|
We can verify the installation is correct with :option:`cmake --install`.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
As with CTest, when using a multi-config generator such as Visual Studio, it
|
||||||
|
will be necessary to specify a configuration like ``Debug`` or ``Release``
|
||||||
|
using :option:`cmake --install --config <cmake--install --config>`.
|
||||||
|
This is true whenever using a multi-config generator, and won't be called out
|
||||||
|
specifically in future commands.
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
cmake --install build --prefix install
|
cmake --install build --prefix install
|
||||||
@@ -352,15 +360,6 @@ The build command is sufficient to reconfigure the project.
|
|||||||
|
|
||||||
We can verify the installation is correct with :option:`cmake --install`.
|
We can verify the installation is correct with :option:`cmake --install`.
|
||||||
|
|
||||||
.. note::
|
|
||||||
|
|
||||||
As with CTest, when using multi-config generator, eg Visual Studio, it will be
|
|
||||||
necessary to specify a configuration with
|
|
||||||
``cmake --install --config <config> <remaining flags>``, where
|
|
||||||
``<config>`` is a value like ``Debug`` or ``Release``. This is true whenever
|
|
||||||
using a multi-config generator, and won't be called out specifically in
|
|
||||||
future commands.
|
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
cmake --install build --prefix install
|
cmake --install build --prefix install
|
||||||
|
|||||||
@@ -117,11 +117,10 @@ Verify all the tests pass with CTest.
|
|||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
If using a multi-config generator, eg Visual Studio, it will be necessary to
|
When using a multi-config generator such as Visual Studio, it
|
||||||
specify a configuration with ``ctest -C <config> <remaining flags>``, where
|
will be necessary to specify a configuration like ``Debug`` or ``Release``
|
||||||
``<config>`` is a value like ``Debug`` or ``Release``. This is true whenever
|
using :option:`ctest -C`. This is true whenever using a multi-config
|
||||||
using a multi-config generator, and won't be called out specifically in
|
generator, and won't be called out specifically in future commands.
|
||||||
future commands.
|
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user