-
Notifications
You must be signed in to change notification settings - Fork 7
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
Several improvements to the Cmake #77
Conversation
- adopt a more uniform style - try to only declare link libraries as public if really necessary - declare compile definitions as private and use as much as possible target_compile_definitions over add_compile_definitions - list sources in the CMakeLists files - split share library into share and timing in order to make it clear where timing is used/needed - declare the linker language for our executables
…e sure all of them are printed to stdout.
e81b833
to
ef707a2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM on a quick look, but I don't know enough about CMake to give a proper review
@aekiss Thanks for having a look. I was thinking maybe we should make the compilation of the WW3 utilities optional. What do you think? |
I guess it could be made optional but enabled by default? It seems harmless to build those utilities, and may be handy to have versions that match ww3. @ezhilsabareesh8 what do you think? |
Hi @aekiss, I agree with your suggestion. Enabling the WW3 utilities by default offers the flexibility to generate inputs and outputs, which can be quite handy. In particular, the inclusion of the |
@aekiss No problems in having this on by default. This is more about giving users full control of what and how to build and install things.
Hmm, that's good to know. If that's the case, then maybe we should always build the utilities. |
…Update build script to use "cmake --install" and rename all executables.
ef707a2
to
27f9590
Compare
I've added the WW3 binaries to the installation and updated the build script accordingly. |
Add the possibility to install the OM3 executables using CMake.
Also reorganized the CMakeLists.txt files. Among other things:
All of these changes are aimed at making it easier to use the OM3 build system to build and install the OM3 executables and some of the components through Spack.