CMake: Wrap target names in $<TARGET_NAME:...>
This helps CMake's export generator understand the expression.
This commit is contained in:
parent
8df53698f4
commit
e49306fec9
|
|
@ -58,8 +58,8 @@ if(CMAKE_VERSION VERSION_LESS "3.12")
|
|||
set(is_object "$<STREQUAL:$<TARGET_PROPERTY:${library},TYPE>,OBJECT_LIBRARY>")
|
||||
set(is_component "$<BOOL:$<${is_object}:${is_component}>>")
|
||||
|
||||
set(name_of_component "$<${is_component}:${library}>")
|
||||
set(name_of_non_component "$<$<NOT:${is_component}>:${library}>")
|
||||
set(name_of_component "$<${is_component}:$<TARGET_NAME:${library}>>")
|
||||
set(name_of_non_component "$<$<NOT:${is_component}>:$<TARGET_NAME:${library}>>")
|
||||
endif()
|
||||
|
||||
# Libraries are only linked transitively if they aren't components.
|
||||
|
|
|
|||
Loading…
Reference in New Issue