Commit 8475e143 authored by Ghislain MARY's avatar Ghislain MARY

Fix BZRTPConfig.cmake.in.

parent b738c2df
......@@ -37,7 +37,17 @@ if(@ENABLE_SHARED@)
set(BZRTP_LIBRARIES ${BZRTP_TARGETNAME})
else()
set(BZRTP_TARGETNAME bzrtp-static)
bc_set_libraries_from_static_target(BZRTP_LIBRARIES ${BZRTP_TARGETNAME})
if(TARGET ${BZRTP_TARGETNAME})
if(LINPHONE_BUILDER_GROUP_EXTERNAL_SOURCE_PATH_BUILDERS)
set(BZRTP_LIBRARIES ${BZRTP_TARGETNAME})
else()
get_target_property(BZRTP_LIBRARIES ${BZRTP_TARGETNAME} LOCATION)
endif()
get_target_property(BZRTP_LINK_LIBRARIES ${BZRTP_TARGETNAME} INTERFACE_LINK_LIBRARIES)
if(BZRTP_LINK_LIBRARIES)
list(APPEND BZRTP_LIBRARIES ${BZRTP_LINK_LIBRARIES})
endif()
endif()
endif()
get_target_property(BZRTP_INCLUDE_DIRS ${BZRTP_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