-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
Cannote include as CMake package with CPM #253
Comments
I've already forked and solved this. Working on some docs to put a PR together. |
BTW, contributing guidelines say I should assign this to myself but it looks like I have no permissions to do so. |
Thanks @sdeleon28! I wasn't even aware of CPM :) I think this is related to an issue we've started seeing a fair amount recently, and one which @JoshMarler I think has some ideas on. Thanks for tackling it. I'll assign it to you and check the permissions settings! |
Yep was hoping to tackle this week but I've been tight on time so apologies @sdeleon28 ! For what it's worth, I was thinking the nicest approach might be to separate the examples CMakeLists.txt into it's own project and remove My hope is that we can then remove |
No worries about the delay, @JoshMarler! I've been teaching myself some CMake for the past few days and now feel confident enough to contribute a solution that doesn't break anything. When you say "into its own project" do you mean a separate repo? That could work but would also make the example a bit less discoverable. On the plus side, it would actually be a more useful example if the inclusion of the library is explicit in code, since that structure more closely resembles client code. Anyhow, I've already fixed this in a slightly more duck-tape-y way. I'll send a PR to see if it's something you might want to merge as a temporary fix while the broader refactoring doesn't happen. I've added some docs about how to use it with CPM. Not sure if that's the main way you want to encourage users to install the library, but it's the most straight-forward I'm aware of. My PR also takes care of the extra step that builds JUCE in an optional way. Essentially, everything that used to happen, still happens by default (I haven't broken anyone's current tooling or workflow) but it allows you to opt out of certain features. I've also added an extra check for the js library, so that you're able to set whether to use Duktape or Hermes from client code. |
Hey @sdeleon28 ! Sorry "project" was a poor choice of words. I mean more that examples would have it's own "top level" i.e. users would do the following to run the example projetct:
So under Either way though I'll take a look at your PR later this evening! |
I'm trying to add react-juce as a CPM dependency with this code:
And when I try to build with my usual
cmake -S . -B out/builds/
I get these errors:The text was updated successfully, but these errors were encountered: