Commit ea8588ea authored by Ghislain MARY's avatar Ghislain MARY

Simplify BelcardConfig.cmake.in.

parent 8077adc7
......@@ -37,11 +37,7 @@ if(@ENABLE_SHARED@)
set(BELCARD_LIBRARIES ${BELCARD_TARGETNAME})
else()
set(BELCARD_TARGETNAME belcard-static)
get_target_property(BELCARD_LIBRARIES ${BELCARD_TARGETNAME} LOCATION)
get_target_property(BELCARD_LINK_LIBRARIES ${BELCARD_TARGETNAME} INTERFACE_LINK_LIBRARIES)
if(BELCARD_LINK_LIBRARIES)
list(APPEND BELCARD_LIBRARIES ${BELCARD_LINK_LIBRARIES})
endif()
bc_set_libraries_from_static_target(BELCARD_LIBRARIES ${BELCARD_TARGETNAME})
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