cmake: make COMPONENT_TARGET available in components
This commit is contained in:
parent
055943e293
commit
e9786e3038
|
@ -107,6 +107,8 @@ function(register_component)
|
||||||
target_link_libraries(${component} "-L${CMAKE_CURRENT_BINARY_DIR}")
|
target_link_libraries(${component} "-L${CMAKE_CURRENT_BINARY_DIR}")
|
||||||
target_link_libraries(${component} "-Wl,--whole-archive -l${component} -Wl,--no-whole-archive")
|
target_link_libraries(${component} "-Wl,--whole-archive -l${component} -Wl,--no-whole-archive")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(COMPONENT_TARGET ${COMPONENT_NAME} PARENT_SCOPE)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
function(register_config_only_component)
|
function(register_config_only_component)
|
||||||
|
|
Loading…
Reference in a new issue