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

How to compute Hunter/Toolchain/Config ID #658

Open
chfast opened this issue Jan 27, 2023 · 4 comments
Open

How to compute Hunter/Toolchain/Config ID #658

chfast opened this issue Jan 27, 2023 · 4 comments
Labels
question Further information is requested

Comments

@chfast
Copy link

chfast commented Jan 27, 2023

Is there a way to compute the Hunter/Toolchain/Config IDs without running full CMake configuration? I want to use these in CI deps cache ID.

@NeroBurner
Copy link

Yes, there is, but you'd have to reiimplement many of the things CMake does for you and the things Hunter does. If you want to try anyways, the following documentation could be very helpful for you

https://hunter.readthedocs.io/en/latest/overview/customization.html

@chfast
Copy link
Author

chfast commented Jan 31, 2023

Is there a way to run cmake to compute it by hunter but without downloading and building dependencies?

@NeroBurner
Copy link

I haven't tried, but you could create a CMakeLists.txt (or modify your project one), which exits right after the HunterGate() command and writes the Hunter-ID variables to a file, or just print them to the console)

What exactly would be the use-case? If you want a specific folder to be cached you could set a HUNTER_ROOT environment variable for each architecture you want to build or something like that. I'm doing that to get distinct hunter-cache folders for the different Ubuntu versions I build for (and then I can selectively delete them)

@chfast
Copy link
Author

chfast commented Jan 31, 2023

This should be a good cache key on CI servers.

@rbsheth rbsheth added the question Further information is requested label Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants