Commit 357a64a7 authored by Ghislain MARY's avatar Ghislain MARY

Fix LinphoneConfig.cmake.in.

parent 9add72c2
......@@ -45,7 +45,17 @@ if(@ENABLE_SHARED@)
set(LINPHONE_LIBRARIES ${LINPHONE_TARGETNAME})
else()
set(LINPHONE_TARGETNAME linphone-static)
bc_set_libraries_from_static_target(LINPHONE_LIBRARIES ${LINPHONE_TARGETNAME})
if(TARGET ${LINPHONE_TARGETNAME})
if(LINPHONE_BUILDER_GROUP_EXTERNAL_SOURCE_PATH_BUILDERS)
set(LINPHONE_LIBRARIES ${LINPHONE_TARGETNAME})
else()
get_target_property(LINPHONE_LIBRARIES ${LINPHONE_TARGETNAME} LOCATION)
endif()
get_target_property(LINPHONE_LINK_LIBRARIES ${LINPHONE_TARGETNAME} INTERFACE_LINK_LIBRARIES)
if(LINPHONE_LINK_LIBRARIES)
list(APPEND LINPHONE_LIBRARIES ${LINPHONE_LINK_LIBRARIES})
endif()
endif()
endif()
get_target_property(LINPHONE_INCLUDE_DIRS ${LINPHONE_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