diff options
author | Brad King <brad.king@kitware.com> | 2014-10-22 20:43:05 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-10-22 20:48:04 (GMT) |
commit | 80b19a7127e48dfc0e8cd0162359ae149e537638 (patch) | |
tree | b164da556a4cbb9d0315f01c6b9fe92de955acc5 /Help/manual/cmake-compile-features.7.rst | |
parent | 4fdacedc27aa26501530fc85f887ab58b2800472 (diff) | |
download | CMake-80b19a7127e48dfc0e8cd0162359ae149e537638.zip CMake-80b19a7127e48dfc0e8cd0162359ae149e537638.tar.gz CMake-80b19a7127e48dfc0e8cd0162359ae149e537638.tar.bz2 |
Help/manual: Avoid long lines in code blocks
Update the wording of some examples to avoid long lines in code blocks.
Otherwise the formatted documentation can exceed certain column width
limitations.
Diffstat (limited to 'Help/manual/cmake-compile-features.7.rst')
-rw-r--r-- | Help/manual/cmake-compile-features.7.rst | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Help/manual/cmake-compile-features.7.rst b/Help/manual/cmake-compile-features.7.rst index 8a2fe30..8e3dbb8 100644 --- a/Help/manual/cmake-compile-features.7.rst +++ b/Help/manual/cmake-compile-features.7.rst @@ -276,10 +276,13 @@ properties: .. code-block:: cmake 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 INTERFACE - "$<$<COMPILE_FEATURES:cxx_variadic_templates>:${CMAKE_CURRENT_SOURCE_DIR}/with_variadics>" - "$<$<NOT:$<COMPILE_FEATURES:cxx_variadic_templates>>:${CMAKE_CURRENT_SOURCE_DIR}/no_variadics>") + "$<$<COMPILE_FEATURES:cxx_variadic_templates>:${with_variadics}>" + "$<$<NOT:$<COMPILE_FEATURES:cxx_variadic_templates>>:${no_variadics}>" + ) Consuming code then simply links to the ``foo`` target as usual and uses the feature-appropriate include directory |