Commit 7e5e66dd authored by Ghislain MARY's avatar Ghislain MARY

Fix BelleSIPConfig.cmake.in.

parent fd407baf
......@@ -38,7 +38,17 @@ if(@ENABLE_SHARED@)
set(BELLESIP_LIBRARIES ${BELLESIP_TARGETNAME})
else()
set(BELLESIP_TARGETNAME bellesip-static)
bc_set_libraries_from_static_target(BELLESIP_LIBRARIES ${BELLESIP_TARGETNAME})
if(TARGET ${BELLESIP_TARGETNAME})
if(LINPHONE_BUILDER_GROUP_EXTERNAL_SOURCE_PATH_BUILDERS)
set(BELLESIP_LIBRARIES ${BELLESIP_TARGETNAME})
else()
get_target_property(BELLESIP_LIBRARIES ${BELLESIP_TARGETNAME} LOCATION)
endif()
get_target_property(BELLESIP_LINK_LIBRARIES ${BELLESIP_TARGETNAME} INTERFACE_LINK_LIBRARIES)
if(BELLESIP_LINK_LIBRARIES)
list(APPEND BELLESIP_LIBRARIES ${BELLESIP_LINK_LIBRARIES})
endif()
endif()
endif()
get_target_property(BELLESIP_INCLUDE_DIRS ${BELLESIP_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