FMS library not found in CMake build of standalone dycore in `dev/emc` (likely others as well)
Closed this issue · 1 comments
Describe the bug
When linking to the appropriate FMS library, the variable kind
is either r4
or r8
.
In this repository, it is linked with R4
or R8
. As a result FMS::fms_R4
or FMS::fms_R8
is not found.
This slips the cracks in the UFS-weather-model because it is hardwired there. See lines 123-127 in https://github.com/ufs-community/ufs-weather-model/blob/develop/CMakeLists.txt.
To Reproduce
Try to configure and build the standalone fv3dycore w/ CMake.
Expected behavior
CMake configuration should succeed following FMS is FOUND.
System Environment
Describe the system environment, include:
Any system that supports this dycore will fail in the above conditions.
Additional context
Attempting to build the FV3 dycore as a standalone.
Note. Fixing this won't lead to building FV3 dycore standalone library as there are complicated dependencies to files in CCPP that are required before this can be built.
Nevertheless, the bug described above should be fixed.
Fixed with PR #199. Closing.