Don't use LINKED where not needed.
This commit is contained in:
parent
5b88504f65
commit
5c9f5e313f
|
@ -25,6 +25,6 @@ target_compile_definitions(consumer
|
||||||
PRIVATE $<TARGET_PROPERTY:target_compile_definitions,INTERFACE_COMPILE_DEFINITIONS>
|
PRIVATE $<TARGET_PROPERTY:target_compile_definitions,INTERFACE_COMPILE_DEFINITIONS>
|
||||||
$<$<TARGET_DEFINED:notdefined>:SHOULD_NOT_BE_DEFINED>
|
$<$<TARGET_DEFINED:notdefined>:SHOULD_NOT_BE_DEFINED>
|
||||||
$<$<TARGET_DEFINED:target_compile_definitions>:SHOULD_BE_DEFINED>
|
$<$<TARGET_DEFINED:target_compile_definitions>:SHOULD_BE_DEFINED>
|
||||||
$<LINKED:linked>
|
$<TARGET_PROPERTY:linked,INTERFACE_COMPILE_DEFINITIONS>
|
||||||
-DDASH_D_DEFINE
|
-DDASH_D_DEFINE
|
||||||
)
|
)
|
||||||
|
|
|
@ -52,6 +52,6 @@ set_property(TARGET linked PROPERTY
|
||||||
target_include_directories(consumer
|
target_include_directories(consumer
|
||||||
PRIVATE
|
PRIVATE
|
||||||
$<TARGET_PROPERTY:target_include_directories,INTERFACE_INCLUDE_DIRECTORIES>
|
$<TARGET_PROPERTY:target_include_directories,INTERFACE_INCLUDE_DIRECTORIES>
|
||||||
$<LINKED:linked>
|
$<TARGET_PROPERTY:linked,INTERFACE_INCLUDE_DIRECTORIES>
|
||||||
relative_dir
|
relative_dir
|
||||||
)
|
)
|
||||||
|
|
|
@ -121,5 +121,5 @@ target_link_libraries(lib5 libbad libgood)
|
||||||
# get the libgood includes in before the libbad includes.
|
# get the libgood includes in before the libbad includes.
|
||||||
# We do that with this command:
|
# We do that with this command:
|
||||||
target_include_directories(lib5
|
target_include_directories(lib5
|
||||||
BEFORE PRIVATE $<LINKED:libgood>
|
BEFORE PRIVATE $<TARGET_PROPERTY:libgood,INTERFACE_INCLUDE_DIRECTORIES>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue