Skip to content

Commit

Permalink
Modernize rtmidi for conan v2
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinDelille committed Mar 7, 2022
1 parent 3fcd880 commit 0cefc89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recipes/rtmidi/all/conanfile.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 0cefc89

Please sign in to comment.