Help: Use a property-specific command instead of the generic one.

This commit is contained in:
Stephen Kelly 2014-11-22 12:56:53 +01:00
parent 8609a884a2
commit f8f02451ad
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ installation prefix. For example:
.. code-block:: cmake .. 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> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include/mylib>
$<INSTALL_INTERFACE:include/mylib> # <prefix>/include/mylib $<INSTALL_INTERFACE:include/mylib> # <prefix>/include/mylib
) )