diff --git a/recipes/libalsa/all/conanfile.py b/recipes/libalsa/all/conanfile.py index 34fa603e9a17e..90f0a8ce07549 100644 --- a/recipes/libalsa/all/conanfile.py +++ b/recipes/libalsa/all/conanfile.py @@ -91,10 +91,13 @@ def package_info(self): self.cpp_info.set_property("cmake_file_name", "ALSA") self.cpp_info.set_property("cmake_target_name", "ALSA::ALSA") self.cpp_info.set_property("pkg_config_name", "alsa") + self.cpp_info.libs = ["asound"] + self.cpp_info.system_libs = ["dl", "m", "rt", "pthread"] + alsa_config_dir = os.path.join(self.package_folder, "res", "alsa") + self.runenv_info.define_path("ALSA_CONFIG_DIR", alsa_config_dir) + # TODO: to remove in conan v2? self.cpp_info.names["cmake_find_package"] = "ALSA" self.cpp_info.names["cmake_find_package_multi"] = "ALSA" - - self.cpp_info.libs = ["asound"] - self.cpp_info.system_libs = ["dl", "m", "rt", "pthread"] - self.env_info.ALSA_CONFIG_DIR = os.path.join(self.package_folder, "res", "alsa") + self.cpp_info.names["pkg_config"] = "alsa" + self.env_info.ALSA_CONFIG_DIR = alsa_config_dir