From 0cefc89ab9e2726455619956c296591fa4db9d19 Mon Sep 17 00:00:00 2001 From: Martin Delille Date: Mon, 7 Mar 2022 12:08:16 +0100 Subject: [PATCH] Modernize rtmidi for conan v2 --- recipes/rtmidi/all/conanfile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/rtmidi/all/conanfile.py b/recipes/rtmidi/all/conanfile.py index 1889ce4321d37..a1196289afc7c 100644 --- a/recipes/rtmidi/all/conanfile.py +++ b/recipes/rtmidi/all/conanfile.py @@ -1,7 +1,7 @@ import os from conans import ConanFile, CMake, tools -required_conan_version = ">=1.33.0" +required_conan_version = ">=1.43.0" class RtMidiConan(ConanFile): @@ -75,7 +75,7 @@ def package(self): tools.rmdir(os.path.join(self.package_folder, "share")) def package_info(self): - self.cpp_info.names["pkg_config"] = "rtmidi" + self.cpp_info.set_property("pkg_config_name", "rtmidi") self.cpp_info.names["cmake_find_package"] = "RtMidi" self.cpp_info.names["cmake_find_package_multi"] = "RtMidi" self.cpp_info.components["librtmidi"].names["cmake_find_package"] = "rtmidi"