Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The cmake command will be printed near the top of the e3sm build log (located in $EXEROOT/e3sm.bldlog.*). If you copy this command (you do need (and probably don't want) to copy the output redirection stuff at the end), you can 'cd $EXEROOT/cmake-bld; paste cmake cmd' and you'll then be configuring E3SM just like case.build would. Be sure not to forget to source $case/.env_mach_specific.sh first so that your environment matches the CIME build environment.

Note: the e3sm.bldlog file won't exist until a build is first attemped. It might make sense to make a new tool for providing the cmake command directly.will only exist if you have previously attempted a build in your case. If you want to go straight to doing a direct build:

Code Block
% ./create_test $test_case --no-build # Could also do create_newcase here instead
% cd $case_dir
% ./case.setup # only needed if you did create_newcase instead of create_test
% ./case.build --sharedlib-only # make sure sharedlibs are build, these are not yet handled by cmake
% ./case.build --model-only --dry-run
...
* look for CMake cmd*
...
% cd $exeroot/cmake-bld
% * copy/paste cmake cmd and run * 


Invoking make (or ninja) directly

...