Help: Use a property-specific command instead of the generic one.
This commit is contained in:
parent
8609a884a2
commit
f8f02451ad
|
@ -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
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue