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.
This commit is contained in:
parent
49959d7a23
commit
a9b1838f97
|
@ -278,7 +278,7 @@ properties:
|
||||||
add_library(foo INTERFACE)
|
add_library(foo INTERFACE)
|
||||||
set(with_variadics ${CMAKE_CURRENT_SOURCE_DIR}/with_variadics)
|
set(with_variadics ${CMAKE_CURRENT_SOURCE_DIR}/with_variadics)
|
||||||
set(no_variadics ${CMAKE_CURRENT_SOURCE_DIR}/no_variadics)
|
set(no_variadics ${CMAKE_CURRENT_SOURCE_DIR}/no_variadics)
|
||||||
target_link_libraries(foo
|
target_include_directories(foo
|
||||||
INTERFACE
|
INTERFACE
|
||||||
"$<$<COMPILE_FEATURES:cxx_variadic_templates>:${with_variadics}>"
|
"$<$<COMPILE_FEATURES:cxx_variadic_templates>:${with_variadics}>"
|
||||||
"$<$<NOT:$<COMPILE_FEATURES:cxx_variadic_templates>>:${no_variadics}>"
|
"$<$<NOT:$<COMPILE_FEATURES:cxx_variadic_templates>>:${no_variadics}>"
|
||||||
|
|
Loading…
Reference in New Issue