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
Cannot build with Ninja CMake backend #73
Comments
Is the Java binding the one you are looking for? What does ninja say when you build a specific target, for instance, |
It looks like CMake creates a Ninja file that does not handle dependencies between targets. The problem is that we have two targets, |
Yeah, i already found that workaround after your first message :) Noticed another minor problem: ninja |
I'm not sure if I can fix this issue here. It looks like this is a CMake related issue. |
I did some research and now think that it's likely CMake swig module issue. If it would provide a list of generated files, everything should've worked fine (then again i don't know if it's possible with the way CMake works). I have found nobody successfully combining cmake swig and That said, i have no idea why |
I really would like to avoid that :).
So, how do we solve your problem? |
Yeah, i totally agree with that.
I think the best way is to add support for output files in CMake Swig and then fix your CMakeLists accordingly. I'm currently looking if i can do that myself and then will be filing issue or PR upstream. If it doesn't work out for some reason, i have no idea what would be the best solution. Probably at least mentioning this problem somewhere in readme. |
Hmm, minimal solution doesn't even require changing anything in your CMakeLists, though it doesn't fix necessity to list .java files manually. Will link the PR here when it's ready to track its status. |
Actually, I had to add the list of generated swig files (source files, not the compiled so/ddl files) manually in order to let |
Hmm, with my fix some files are being cleaned, but not all. But i meant the necessity to list files in jar target instead of writing target name or some variable there. Actually i'm a bit confused about it now, cause resulting jar contains more classes than just those. |
This is a feature of |
I have tested current CMake master and can confirm that your patch fixes the dependency issue between the java and jar target of TinySpline. Thanks for your work! However, (as you already mentioned) |
Ah, right, forgot to attend the issue here. You're welcome :) Yeah, i don't think that those files can do any harm (except for hypothetical case where some class is deleted, but still referenced in source - i'm not swig expert to tell if that can actually happen), so it's safe to close this. Generally i think that using |
While building with
make
backend works fine, building withninja
fails with the following message:The text was updated successfully, but these errors were encountered: