@@ -190,6 +190,8 @@ def _get_cmake_lib(self, info, components, pkg_folder, pkg_folder_var):
190190 # FIXME: Filter by lib traits!!!!!
191191 if not self ._require .headers : # If not depending on headers, paths and
192192 includedirs = defines = None
193+ extra_libs = self ._cmakedeps .get_property ("cmake_extra_interface_libs" , self ._conanfile ,
194+ check_type = list ) or []
193195 sources = [self ._path (source , pkg_folder , pkg_folder_var ) for source in info .sources ]
194196 target = {"type" : "INTERFACE" ,
195197 "includedirs" : includedirs ,
@@ -199,7 +201,7 @@ def _get_cmake_lib(self, info, components, pkg_folder, pkg_folder_var):
199201 "cflags" : " " .join (cmake_escape_value (f ) for f in info .cflags ),
200202 "sharedlinkflags" : " " .join (cmake_escape_value (v ) for v in info .sharedlinkflags ),
201203 "exelinkflags" : " " .join (cmake_escape_value (v ) for v in info .exelinkflags ),
202- "system_libs" : " " .join (info .system_libs ),
204+ "system_libs" : " " .join (info .system_libs + extra_libs ),
203205 "sources" : " " .join (sources )
204206 }
205207 # System frameworks (only Apple OS)
@@ -295,6 +297,9 @@ def _get_dependencies(self):
295297 transitive_reqs = self ._cmakedeps .get_transitive_requires (self ._conanfile )
296298 # FIXME: Hardcoded CONFIG
297299 ret = {self ._cmakedeps .get_cmake_filename (r ): "CONFIG" for r in transitive_reqs .values ()}
300+ extra_mods = self ._cmakedeps .get_property ("cmake_extra_dependencies" , self ._conanfile ,
301+ check_type = list ) or []
302+ ret .update ({extra_mod : "" for extra_mod in extra_mods })
298303 return ret
299304
300305 @staticmethod
0 commit comments