diff options
author | Erik Sjölund <erik.sjolund@gmail.com> | 2015-05-29 13:16:32 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-05-29 15:23:37 (GMT) |
commit | a9b1838f97af5fbc377a4cceb2bb503b57ce5eb4 (patch) | |
tree | 67bcb7bc170ccf89bb16173c95d6ce46c1d7fd0a | |
parent | 49959d7a23a8b1261e3120643ee189869d552929 (diff) | |
download | CMake-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.
-rw-r--r-- | Help/manual/cmake-compile-features.7.rst | 2 |
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}>" |