diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-11-22 11:56:53 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-11-22 11:58:58 (GMT) |
commit | f8f02451ad2f4a595a71c6a85f9fe5122fa83d6c (patch) | |
tree | 1cfae3c3a85452fbc9bee8c2bde778ee19a1c7a3 | |
parent | 8609a884a2e0a7518180b11b6b6ef9baa6200424 (diff) | |
download | CMake-f8f02451ad2f4a595a71c6a85f9fe5122fa83d6c.zip CMake-f8f02451ad2f4a595a71c6a85f9fe5122fa83d6c.tar.gz CMake-f8f02451ad2f4a595a71c6a85f9fe5122fa83d6c.tar.bz2 |
Help: Use a property-specific command instead of the generic one.
-rw-r--r-- | Help/prop_tgt/INTERFACE_INCLUDE_DIRECTORIES.rst | 4 |
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 - ) + ) |