Commit fdd4b15c authored by Ghislain MARY's avatar Ghislain MARY

Fix Bcg729Config.cmake.in.

parent 1100fb48
......@@ -37,7 +37,17 @@ if(@ENABLE_SHARED@)
set(BCG729_LIBRARIES ${BCG729_TARGETNAME})
else()
set(BCG729_TARGETNAME bcg729-static)
bc_set_libraries_from_static_target(BCG729_LIBRARIES ${BCG729_TARGETNAME})
if(TARGET ${BCG729_TARGETNAME})
if(LINPHONE_BUILDER_GROUP_EXTERNAL_SOURCE_PATH_BUILDERS)
set(BCG729_LIBRARIES ${BCG729_TARGETNAME})
else()
get_target_property(BCG729_LIBRARIES ${BCG729_TARGETNAME} LOCATION)
endif()
get_target_property(BCG729_LINK_LIBRARIES ${BCG729_TARGETNAME} INTERFACE_LINK_LIBRARIES)
if(BCG729_LINK_LIBRARIES)
list(APPEND BCG729_LIBRARIES ${BCG729_LINK_LIBRARIES})
endif()
endif()
endif()
get_target_property(BCG729_INCLUDE_DIRS ${BCG729_TARGETNAME} INTERFACE_INCLUDE_DIRECTORIES)
if (NOT BCG729_INCLUDE_DIRS)
......
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