summaryrefslogtreecommitdiffstats
path: root/Help/prop_tgt
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-11-22 11:56:53 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-11-22 11:58:58 (GMT)
commitf8f02451ad2f4a595a71c6a85f9fe5122fa83d6c (patch)
tree1cfae3c3a85452fbc9bee8c2bde778ee19a1c7a3 /Help/prop_tgt
parent8609a884a2e0a7518180b11b6b6ef9baa6200424 (diff)
downloadCMake-f8f02451ad2f4a595a71c6a85f9fe5122fa83d6c.zip
CMake-f8f02451ad2f4a595a71c6a85f9fe5122fa83d6c.tar.gz
CMake-f8f02451ad2f4a595a71c6a85f9fe5122fa83d6c.tar.bz2
Help: Use a property-specific command instead of the generic one.
Diffstat (limited to 'Help/prop_tgt')
-rw-r--r--Help/prop_tgt/INTERFACE_INCLUDE_DIRECTORIES.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Help/prop_tgt/INTERFACE_INCLUDE_DIRECTORIES.rst b/Help/prop_tgt/INTERFACE_INCLUDE_DIRECTORIES.rst
index b863d83..3ca12ff 100644
--- a/Help/prop_tgt/INTERFACE_INCLUDE_DIRECTORIES.rst
+++ b/Help/prop_tgt/INTERFACE_INCLUDE_DIRECTORIES.rst
@@ -17,7 +17,7 @@ installation prefix. For example:
.. code-block:: cmake
- set_property(TARGET mylib APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES
+ target_include_directories(mylib INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include/mylib>
$<INSTALL_INTERFACE:include/mylib> # <prefix>/include/mylib
- )
+ )