Просмотр исходного кода

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.
Erik Sjölund 11 лет назад
Родитель
Сommit
a9b1838f97
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Help/manual/cmake-compile-features.7.rst

+ 1 - 1
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}>"