瀏覽代碼

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 10 年之前
父節點
當前提交
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}>"