Commit e155de95 authored by Ghislain MARY's avatar Ghislain MARY

Fix BelcardConfig.cmake.in.

parent ea8588ea
......@@ -37,7 +37,17 @@ if(@ENABLE_SHARED@)
set(BELCARD_LIBRARIES ${BELCARD_TARGETNAME})
else()
set(BELCARD_TARGETNAME belcard-static)
bc_set_libraries_from_static_target(BELCARD_LIBRARIES ${BELCARD_TARGETNAME})
if(TARGET ${BELCARD_TARGETNAME})
if(LINPHONE_BUILDER_GROUP_EXTERNAL_SOURCE_PATH_BUILDERS)
set(BELCARD_LIBRARIES ${BELCARD_TARGETNAME})
else()
get_target_property(BELCARD_LIBRARIES ${BELCARD_TARGETNAME} LOCATION)
endif()
get_target_property(BELCARD_LINK_LIBRARIES ${BELCARD_TARGETNAME} INTERFACE_LINK_LIBRARIES)
if(BELCARD_LINK_LIBRARIES)
list(APPEND BELCARD_LIBRARIES ${BELCARD_LINK_LIBRARIES})
endif()
endif()
endif()
get_target_property(BELCARD_INCLUDE_DIRS ${BELCARD_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