rtmidi/rtmidi-cmake.patch
Takashi Iwai 1fef4cf04d Accepting request 1127582 from home:kill_it:branches:multimedia:libs
- Switch build to cmake
- add rtmidi-cmake.patch
- Update to version 6.0.0 
  * run "git log 5.0.0..HEAD" to see commits since last release
  * new Android API (thanks to YellowLabrador!)
  * new Windows UWP API support (thanks to Masamichi Hosoda!)
  * various build system updates and code efficiencies

OBS-URL: https://build.opensuse.org/request/show/1127582
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/rtmidi?expand=0&rev=6
2023-11-20 11:48:49 +00:00

23 lines
675 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3a85a03..867f179 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,7 +2,7 @@
# CopyPolicy: RtMidi license.
# Set minimum CMake required version for this project.
-cmake_minimum_required(VERSION 3.24 FATAL_ERROR)
+cmake_minimum_required(VERSION 3.20 FATAL_ERROR)
# Define a C++ project.
project(RtMidi LANGUAGES CXX C)
@@ -262,7 +262,7 @@ install(TARGETS ${LIB_TARGETS}
export(PACKAGE RtMidi)
# Set installation path for CMake files.
-set(RTMIDI_CMAKE_DESTINATION share/rtmidi)
+set(RTMIDI_CMAKE_DESTINATION ${CMAKE_MODULES_INSTALL_DIR})
# Export library target (build-tree).
export(EXPORT RtMidiTargets