summaryrefslogtreecommitdiffstats
path: root/Help/manual
diff options
context:
space:
mode:
authorErik Sjölund <erik.sjolund@gmail.com>2015-05-29 13:16:32 (GMT)
committerBrad King <brad.king@kitware.com>2015-05-29 15:23:37 (GMT)
commita9b1838f97af5fbc377a4cceb2bb503b57ce5eb4 (patch)
tree67bcb7bc170ccf89bb16173c95d6ce46c1d7fd0a /Help/manual
parent49959d7a23a8b1261e3120643ee189869d552929 (diff)
downloadCMake-a9b1838f97af5fbc377a4cceb2bb503b57ce5eb4.zip
CMake-a9b1838f97af5fbc377a4cceb2bb503b57ce5eb4.tar.gz
CMake-a9b1838f97af5fbc377a4cceb2bb503b57ce5eb4.tar.bz2
Help: Fix typo in cmake-compile-features(7) manual (#15594)
target_link_libraries() is being used in the example code but target_include_directories() was probably meant to be used. The sentence that starts with "Consuming code then" indicates that the example is about using the appropriate include directory.
Diffstat (limited to 'Help/manual')
-rw-r--r--Help/manual/cmake-compile-features.7.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Help/manual/cmake-compile-features.7.rst b/Help/manual/cmake-compile-features.7.rst
index 46a5afb..caf5bac 100644
--- a/Help/manual/cmake-compile-features.7.rst
+++ b/Help/manual/cmake-compile-features.7.rst
@@ -278,7 +278,7 @@ properties:
add_library(foo INTERFACE)
set(with_variadics ${CMAKE_CURRENT_SOURCE_DIR}/with_variadics)
set(no_variadics ${CMAKE_CURRENT_SOURCE_DIR}/no_variadics)
- target_link_libraries(foo
+ target_include_directories(foo
INTERFACE
"$<$<COMPILE_FEATURES:cxx_variadic_templates>:${with_variadics}>"
"$<$<NOT:$<COMPILE_FEATURES:cxx_variadic_templates>>:${no_variadics}>"