Closed ekluzek closed 5 years ago
@ekluzek thanks for the catch and the suggested fix. I see that your fix appends LNDOBJDIR in all cases, rather than just in select cases as was done before. Have you checked to confirm that this is a safe / desirable thing to do? If so, can you please open a PR with your suggested fix?
I've only tested with I compsets. For other compsets it probably still works it just would add an extra unneeded include directory (but that would still be undesirable). I'd really like someone to look at it and suggest the best thing to do and then I can implement and test that solution. I could check for LND_PRESENT or other settings before doing the add to INCLDIR. I could also do some reordering moving the CLM section above the LND_PRESENT section, but that sounds like a bigger change. Could @jedwards4b or @fischer-ncar give advice?
I'll have a fix shortly.
This is in cime5.8.3 in scripts/Tools/Makefile INCLDIR is being added to with a variable that isn't set yet before INCLDIR is initially defined. This seems to work on cheyenne, but fail on hobart.
The following change gets it to work:
Without the above change, I get the following since it doesn't know where to find the CLM modules. Notice one of the first "-I" is empty without anything after it. I'm not sure why this works on cheyenne...