-
Notifications
You must be signed in to change notification settings - Fork 569
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
CMAKE #139
Comments
If anybody wants to test option 1, could check out WW3 from my repo. |
I just started working for the Norwegian Meteorological Institute, and have started looking at WW3. I have some experience setting up CMake for use with complex Fortran projects with custom and multiple pre-processors from my previous job. I could potentially help with this effort if my department gives me a go-ahead, although I haven't yet understood all the intricacies of the WW3 build chain. Point 3 from the list above is doable, if I understand it correctly. CMake is fairly good at resolving Fortran dependencies and setting up a working build order. The dependencies for executables and libraries must of course be defined in the CMake file, but different build targets can have shared dependencies. CMake will sort out the order. As for point 2, CMake can most likely also be used to parse switch files, and run the custom pre-processor thereafter. We did something similar in the previous project I worked on, up until we removed one of the custom pre-processors that depended on it, and switched to the standard c pre-processor. It does complicate the build process though, as the build steps have to be manually defined, but you can create lists to define which files to process how, and the lists can be auto-generated in various ways. |
Hi @vkbo |
We have just had a meeting in which we are discussing the CMake build system for WW3. @kgerheiser is putting the build together. From the meeting today:
|
There are various aspects of CMAKE that WW3 could look into using:
The text was updated successfully, but these errors were encountered: