mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Merge topic 'fix-tutorial'
6d48bd21acTutorial: Clarify the expected change to target_include_directories4d56db038dTutorial: Make `INSTALL_DESTINATION` consistent with installed destinationda22b269b2Tutorial: Add missing `$` in generator expression Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9120
This commit is contained in:
@@ -24,7 +24,7 @@ Logical, Informational, and Output expressions.
|
||||
|
||||
Logical expressions are used to create conditional output. The basic
|
||||
expressions are the ``0`` and ``1`` expressions. A ``$<0:...>`` results in the
|
||||
empty string, and ``<1:...>`` results in the content of ``...``. They can also
|
||||
empty string, and ``$<1:...>`` results in the content of ``...``. They can also
|
||||
be nested.
|
||||
|
||||
Exercise 1 - Adding Compiler Warning Flags with Generator Expressions
|
||||
|
||||
@@ -145,10 +145,10 @@ Next, the new library target is linked to the executable target using
|
||||
|
||||
</details>
|
||||
|
||||
Finally we need to specify the library's header file location. Modify
|
||||
:command:`target_include_directories` to add the ``MathFunctions`` subdirectory
|
||||
as an include directory so that the ``MathFunctions.h`` header file can be
|
||||
found.
|
||||
Finally we need to specify the library's header file location.
|
||||
Modify the existing :command:`target_include_directories` call
|
||||
to add the ``MathFunctions`` subdirectory as an include directory
|
||||
so that the ``MathFunctions.h`` header file can be found.
|
||||
|
||||
.. raw:: html
|
||||
|
||||
|
||||
@@ -97,7 +97,7 @@ include(CMakePackageConfigHelpers)
|
||||
# generate the config file that includes the exports
|
||||
configure_package_config_file(${CMAKE_CURRENT_SOURCE_DIR}/Config.cmake.in
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/MathFunctionsConfig.cmake"
|
||||
INSTALL_DESTINATION "lib/cmake/example"
|
||||
INSTALL_DESTINATION "lib/cmake/MathFunctions"
|
||||
NO_SET_AND_CHECK_MACRO
|
||||
NO_CHECK_REQUIRED_COMPONENTS_MACRO
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user