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

Build fails with -DARB_USE_BUNDLED_UNITS=OFF because the install(units) statement is unconditional #2392

Open
yurivict opened this issue Aug 25, 2024 · 6 comments
Labels

Comments

@yurivict
Copy link

yurivict commented Aug 25, 2024

Please allow arbor to cleanly build with an externally installed units library.

@yurivict yurivict added the bug label Aug 25, 2024
@thorstenhater
Copy link
Contributor

Currently I cannot find a Spack or brew package for llnl::units so we rely on the vendored one.
That'll change if and when such packages arrive. Does BSD provide such a package?

@yurivict
Copy link
Author

Yes, I've added the port for unit yesterday to FreeBSD.

The correct algorithm would be to first look for the installed unit using find_package, use it if it exists, and fall back to the bundled one if not.

@thorstenhater
Copy link
Contributor

Thanks, you are one of the first packagers then do so and I'll happily add the scaffolding!

@thorstenhater
Copy link
Contributor

I don't know if you have the bandwidth, but if you could test with the linked PR, I'd be grateful to see the results.

@yurivict
Copy link
Author

There is something missing in the PR, I left the comment there.

@thorstenhater
Copy link
Contributor

Hi @yurivict,

this took I while longer than I expected it to do, but that was due to me going off the rails and retiring
our whole cursed sub-module construction. Main now uses CPM --- for better or worse --- and should
prefer installed packages over internal ones. Missing packages will be pulled in from external.

See here on how to avoid that:
https://github.com/cpm-cmake/CPM.cmake?tab=readme-ov-file#cpm_use_local_packages

I also tweaked the installation of units to install iff units was built along side Arbor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants