summaryrefslogtreecommitdiffstats
path: root/Help/manual/cmake-buildsystem.7.rst
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-06-12 17:25:53 (GMT)
committerBrad King <brad.king@kitware.com>2014-06-12 17:31:01 (GMT)
commit4054534cc63009652f2fa54f962b1b4fd318de4b (patch)
tree9d55bfce721ba53ea2f4213a4cd2948413e517a4 /Help/manual/cmake-buildsystem.7.rst
parent1f00d738bde27a55531d27ba311d977fb9c59539 (diff)
downloadCMake-4054534cc63009652f2fa54f962b1b4fd318de4b.zip
CMake-4054534cc63009652f2fa54f962b1b4fd318de4b.tar.gz
CMake-4054534cc63009652f2fa54f962b1b4fd318de4b.tar.bz2
Help: Mention INTERFACE_SOURCES as settable for INTERFACE libs
The add_library(INTERFACE) and Interface Libraries documentation list all the INTERFACE_* properties and target_* commands that can be used to define the interface. Add INTERFACE_SOURCES and target_sources() to these lists for completeness.
Diffstat (limited to 'Help/manual/cmake-buildsystem.7.rst')
-rw-r--r--Help/manual/cmake-buildsystem.7.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Help/manual/cmake-buildsystem.7.rst b/Help/manual/cmake-buildsystem.7.rst
index fdd1be4..e4b58c0 100644
--- a/Help/manual/cmake-buildsystem.7.rst
+++ b/Help/manual/cmake-buildsystem.7.rst
@@ -786,11 +786,12 @@ It may specify usage requirements such as
:prop_tgt:`INTERFACE_COMPILE_DEFINITIONS`,
:prop_tgt:`INTERFACE_COMPILE_OPTIONS`,
:prop_tgt:`INTERFACE_LINK_LIBRARIES`, and
+:prop_tgt:`INTERFACE_SOURCES`,
:prop_tgt:`INTERFACE_POSITION_INDEPENDENT_CODE`.
Only the ``INTERFACE`` modes of the :command:`target_include_directories`,
:command:`target_compile_definitions`, :command:`target_compile_options`,
-and :command:`target_link_libraries` commands may be used with ``INTERFACE``
-libraries.
+:command:`target_sources`, and :command:`target_link_libraries` commands
+may be used with ``INTERFACE`` libraries.
A primary use-case for ``INTERFACE`` libraries is header-only libraries.