Commit f805b5c4 authored by Ghislain MARY's avatar Ghislain MARY

Fix ORTPConfig.cmake.in.

parent 4654e796
......@@ -37,7 +37,17 @@ if(@ENABLE_SHARED@)
set(ORTP_LIBRARIES ${ORTP_TARGETNAME})
else()
set(ORTP_TARGETNAME ortp-static)
bc_set_libraries_from_static_target(ORTP_LIBRARIES ${ORTP_TARGETNAME})
if(TARGET ${ORTP_TARGETNAME})
if(LINPHONE_BUILDER_GROUP_EXTERNAL_SOURCE_PATH_BUILDERS)
set(ORTP_LIBRARIES ${ORTP_TARGETNAME})
else()
get_target_property(ORTP_LIBRARIES ${ORTP_TARGETNAME} LOCATION)
endif()
get_target_property(ORTP_LINK_LIBRARIES ${ORTP_TARGETNAME} INTERFACE_LINK_LIBRARIES)
if(ORTP_LINK_LIBRARIES)
list(APPEND ORTP_LIBRARIES ${ORTP_LINK_LIBRARIES})
endif()
endif()
endif()
get_target_property(ORTP_INCLUDE_DIRS ${ORTP_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