mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-20 21:40:15 +08:00
Tutorial: Remove information about EXPORT keyword
Remove the text that implies that the EXPORT keyword will also install the generated CMake file.
This commit is contained in:
@@ -12,10 +12,10 @@ packaged.
|
|||||||
|
|
||||||
The first step is to update our :command:`install(TARGETS)` commands to not
|
The first step is to update our :command:`install(TARGETS)` commands to not
|
||||||
only specify a ``DESTINATION`` but also an ``EXPORT``. The ``EXPORT`` keyword
|
only specify a ``DESTINATION`` but also an ``EXPORT``. The ``EXPORT`` keyword
|
||||||
generates and installs a CMake file containing code to import all targets
|
generates a CMake file containing code to import all targets listed in the
|
||||||
listed in the install command from the installation tree. So let's go ahead and
|
install command from the installation tree. So let's go ahead and explicitly
|
||||||
explicitly ``EXPORT`` the ``MathFunctions`` library by updating the ``install``
|
``EXPORT`` the ``MathFunctions`` library by updating the ``install`` command
|
||||||
command in ``MathFunctions/CMakeLists.txt`` to look like:
|
in ``MathFunctions/CMakeLists.txt`` to look like:
|
||||||
|
|
||||||
.. literalinclude:: Complete/MathFunctions/CMakeLists.txt
|
.. literalinclude:: Complete/MathFunctions/CMakeLists.txt
|
||||||
:caption: MathFunctions/CMakeLists.txt
|
:caption: MathFunctions/CMakeLists.txt
|
||||||
|
Reference in New Issue
Block a user