GEOS-ESM / ESMA_cmake

Custom CMake macros for the GEOS Earth System Model
Apache License 2.0
4 stars 9 forks source link

Fixes #216. Cache BASEDIR #217

Closed mathomp4 closed 3 years ago

mathomp4 commented 3 years ago

Closes #216

If you run CMake from a terminal that does have BASEDIR defined, but then move to a terminal that doesn't, subsequent cmake will fail. This PR changes the order of some statements so that when a good BASEDIR is found, it is then cached.