-
Notifications
You must be signed in to change notification settings - Fork 68
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
Simple CMakeLists.txt #1041
Comments
Sure thing, our github actions for windows CI setup seems like a a good example: conduit/.github/workflows/windows.yml Line 21 in 36a58a4
If you want to enable more features, you can pass them with cmake args like:
Here is a list of the options (which I should convert to a table to make them easier to read!) https://llnl-conduit.readthedocs.io/en/latest/building.html#build-options |
Ah that's perfect - I'll keep this bookmarked! I wound up using a trick to cd into the src directory first, and then nix makes the build directory there and the I got the basic build working (without MPI) and I'm hoping to go back to it and have MPI work too - I'm just kind of terrible with Cmake and new to Nix! 😆 |
Glad that helped! For MPI, the best path is to set cmake opts:
to point to the MPI compiler wrappers (from mpich, etc) The other case (usually on cray systems) is when you use compiler wrappers as the main compiler. In this case you want |
Thank you! I've made a note in our repository and we are good to close here - I think this will mostly be me figuring out how nix achieves the same ability to get a prefix / etc for a package. I'll come back in the future if I have another question. Thanks for your help! |
Hi! I'm looking to build this with nix, and the way you have the custom install (running the bash script) is not ideal (it largely won't work). Can you share the most vanilla method to get this built with a standard cmake command? Apologies I'm not a heavy cmake user so I don't really know how it works. Thanks!
The text was updated successfully, but these errors were encountered: