-
Notifications
You must be signed in to change notification settings - Fork 322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rtaudio and rtmidi have CMake target collisions #339
Comments
Perhaps you could try this: |
Not clear to me whether this is still a problematic issue or not. If I don't see further discussion, I'll close it then next time I cull the issues list. |
@garyscavone If anybody after me will face error:
This can be fixed with the following lines in your CMakeLists.txt:
|
I think the current issue can be closed, but documentation is needed for using rtmidi and rtaudio in the same project. |
It would be nice to have an option to disable the uninstall target completely, I could make a PR for that if there's interest 👍 |
I was using rtmidi in a CMake project using FetchContent like this:
This worked fine until I wanted to also include rtaudio. If I do the same as above to get rtaudio and make it available to my targets, I get an error like this:
I can get around this by including rtaudio and rtmidi directly in my project as submodules, then modifying the CMakeLists.txt for each library to either change the names or just remove the targets (I don't need them). But now I have a fork of each library to maintain just to use both things.
First off, am I missing something obvious? If not, how do users of both libraries typically handle this?
The text was updated successfully, but these errors were encountered: