Displays a warning when forcing CDAT_BUILD_MODE

Found this commit from some time ago.

If `CDAT_BUILD_ESGF` is enabled, then `CDAT_BUILD_MODE` gets forced to `LEAN`. This commit displays a warning to the user when that happens.
The code here checks that CDAT_BUILD_MODE is set, so I have to test before I set it.