-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Cleanup of host software CMake build system #664
Conversation
2859158
to
c40ee0e
Compare
Is this going to be looked at? |
This has been looked at internally, but there are some conflicts with the existing repository that need to be addressed. We've been discussing how we would like to update this so there are no conflicts. We do really appreciate that you have submitted this PR and we are interested in accepting it. Thank you for checking in. If you are interested in updating this PR so it does not have any merge conflicts, it might help us merge it sooner. |
…g found weren't generating a fatal error.
…tandard include paths
…tic build. This preserves compatibility with the previous system.
c40ee0e
to
324d707
Compare
Good to hear! I went ahead and rebased it. |
Thank you! I really appreciate it. |
…brary into FindUSB1
Actually I looked over the code again and realized that FindFFTW was quite out of date from the "upstream" version (I originally made it for the Amber MD project). So, I copied in the new version, as well as another really useful module it uses, TryLinkLibraries, which is used to make sure that libraries found by CMake are properly linkable. |
Thanks for the updates! We ran our CI and there was a CMake error on Ubuntu. Would you please dig into that and address that issue? |
Oops missed a
Should be fixed now. |
Thank you for the code updates! Your PR passes all the preliminary checks. I'll make sure the reviewing team takes a look when they can. |
Thank you very much for this PR! |
We decided to revert this PR after discovering a couple problems:
The second problem looks like it could be fixed easily, but the first one appears to be more difficult and is a more significant problem. |
To give the specifics of this problem - this was the result after
The modifiied build system installed |
Ok I'll work on fixing these issues.
If that's OK then the build system actually already supported this feature. |
It's not just about our own preference. At this point, there are quite a few distributions out there which will already have packaging set up to work with the build system as it was before - as well as any number of scripts etc that users may have set up privately. I think we should avoid doing anything that will require changes to existing workflows, unless there's a really strong reason. |
…ttgadgets#664)"" This reverts commit aa0485d.
…ttgadgets#664)"" This reverts commit aa0485d.
…ttgadgets#664)"" This reverts commit aa0485d.
Hi all! Recently we got a HackRF at my lab (USC RPL), and while we're having a really fun time playing around with it, we did have a few issues at the start getting the host software set up -- especially on Windows with MSVC. It wasn't anything we couldn't deal with, but I did see a few places where the CMake build system could be improved, so I thought I'd try to clean it up a bit. I incorporated a few bits and pieces from other projects I've worked on (mainly LibraryUtils.cmake, and a much less sophisticated version of FindFFTW), but also wrote a fair amount of new logic from scratch. Hopefully the build system should run a bit smoother now!
There are a lot of small changes as you can see, but I'll try to list the major things here:
Hope all this stuff seems useful! As you can see from the build instructions, it makes the Windows build quite a bit simpler because it enables all libraries to be found correctly just by setting the prefix path to where the libraries are installed. Hopefully it should improve life on other platforms too.
I'm happy to answer any other questions or make any other changes you need, just let me know.