Skip to content
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

CMake: Search for Threads in the installed config. #49

Merged
merged 1 commit into from
Mar 19, 2023

Conversation

FtZPetruska
Copy link
Contributor

Attempting to consume PortMidi in CMake on platforms linking against Threads::Threads currently fails with the following error message:

The link interface of target "PortMidi::portmidi" contains:

  Threads::Threads

but the target was not found.

This is due to Threads not being searched in the installed Config file.

Calling `find_package(PortMidi)` would fail due to `Threads::Threads`
being in the target's interface but not available.
@rbdannenberg
Copy link
Contributor

Thanks for the fix. I don't use, test, or maintain CMake configuration facilities, but I'm happy to have them there for others. Contributions and improvements in this area are especially appreciated.

@FtZPetruska
Copy link
Contributor Author

Thank you for your comment.

I am confused as to why this PR was closed, are you planning on adding this change manually? Are there any changes you wanted for this PR?

The issue is that, as it stands, downstream users cannot use PortMidi in CMake out of the box (outside of Windows).

@rbdannenberg rbdannenberg reopened this Mar 19, 2023
@rbdannenberg rbdannenberg merged commit 21a0de3 into PortMidi:master Mar 19, 2023
@rbdannenberg
Copy link
Contributor

Sorry - I thought I hit the merge button. I think it's done now.

@FtZPetruska FtZPetruska deleted the fix-dependency-searching branch March 19, 2023 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants