Commit df0f6640 authored by Ghislain MARY's avatar Ghislain MARY

Fix BelrConfig.cmake.in.

parent 396e741c
......@@ -37,7 +37,17 @@ if(@ENABLE_SHARED@)
set(BELR_LIBRARIES ${BELR_TARGETNAME})
else()
set(BELR_TARGETNAME belr-static)
bc_set_libraries_from_static_target(BELR_LIBRARIES ${BELR_TARGETNAME})
if(TARGET ${BELR_TARGETNAME})
if(LINPHONE_BUILDER_GROUP_EXTERNAL_SOURCE_PATH_BUILDERS)
set(BELR_LIBRARIES ${BELR_TARGETNAME})
else()
get_target_property(BELR_LIBRARIES ${BELR_TARGETNAME} LOCATION)
endif()
get_target_property(BELR_LINK_LIBRARIES ${BELR_TARGETNAME} INTERFACE_LINK_LIBRARIES)
if(BELR_LINK_LIBRARIES)
list(APPEND BELR_LIBRARIES ${BELR_LINK_LIBRARIES})
endif()
endif()
endif()
get_target_property(BELR_INCLUDE_DIRS ${BELR_TARGETNAME} INTERFACE_INCLUDE_DIRECTORIES)
if(LINPHONE_BUILDER_GROUP_EXTERNAL_SOURCE_PATH_BUILDERS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment