...
cmake -DCOMPILER=intel -DCMAKE_VERBOSE_MAKEFILE=ON -DWORK_PREFIX=${abs_dir}/work ${abs_dir}/project
or add a flag to tell the compiler to compile P3 for GEM and not for WRF, although GEM should be the default:
cmake -DCMAKE_Fortran_FLAGS_INIT=-DECCCGEM -DCOMPILER=intel -DCMAKE_VERBOSE_MAKEFILE=ON -DWORK_PREFIX=${abs_dir}/work ${abs_dir}/project
f) Compile and create executable
...