> mkdir build
> cd build/
> export FC=mpifort
> cmake -DBUILD_CORELIBS=ON -DUSE_WRF=OFF -DBUILD_GLOBAL=ON ..
-- The C compiler identification is GNU 6.2.0
-- The CXX compiler identification is GNU 6.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The Fortran compiler identification is GNU 6.2.0
-- Check for working Fortran compiler: /usr/bin/gfortran
-- Check for working Fortran compiler: /usr/bin/gfortran -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /usr/bin/gfortran supports Fortran 90
-- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
Setting paths for Generic System
/gsi
Setting GNU flags
Setting GNU Compiler Flags
-- Found MPI_C: /usr/local/lib/libmpi.so
-- Found MPI_CXX: /usr/local/lib/libmpi_cxx.so;/usr/local/lib/libmpi.so
-- Found MPI_Fortran: /usr/local/lib/libmpi_usempif08.so;/usr/local/lib/libmpi_usempi_ignore_tkr.so;/usr/local/lib/libmpi_mpifh.so;/usr/local/lib/libmpi.so
-- Found NetCDF: /usr/local/lib/libnetcdff.so;/usr/local/lib/libnetcdf.so
-- Found HDF5: /usr/local/lib/libhdf5.so;/usr/local/lib/libsz.so;/usr/local/lib/libz.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so;/usr/local/lib/libhdf5_hl.so;/usr/local/lib/libhdf5.so;/usr/local/lib/libsz.so;/usr/local/lib/libz.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so;/usr/local/lib/libhdf5hl_fortran.so;/usr/local/lib/libhdf5_hl.so;/usr/local/lib/libhdf5_fortran.so;/usr/local/lib/libhdf5.so;/usr/local/lib/libsz.so;/usr/local/lib/libz.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so (found version "1.8.17")
-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found version "7.47.0")
trying to find lapack
-- Looking for Fortran sgemm
-- Looking for Fortran sgemm - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- A library with BLAS API found.
-- Looking for Fortran cheev
-- Looking for Fortran cheev - found
-- A library with LAPACK API found.
setting values for corelibs
in core-libs
in enkf
-- A library with BLAS API found.
-- A library with LAPACK API found.
-- Configuring done
-- Generating done
-- Build files have been written to: /gsi/build
> nproc
8
> make -j4
Scanning dependencies of target bufrlib_prm
Scanning dependencies of target bacio_v2.0.1
Scanning dependencies of target copy
[ 0%] Generating ../../include/bufrlib.prm
Scanning dependencies of target crtm_v2.2.3
[ 0%] Built target copy
[ 0%] Building Fortran object core-libs/bacio/CMakeFiles/bacio_v2.0.1.dir/__/__/libsrc/bacio/baciof.f.o
[ 0%] Building Fortran object core-libs/bacio/CMakeFiles/bacio_v2.0.1.dir/__/__/libsrc/bacio/bafrio.f.o
[ 0%] Built target bufrlib_prm
[ 0%] Building Fortran object core-libs/bacio/CMak..................
......................
......................
[100%] Linking Fortran executable ../../bin/enkf_gfs.x
[100%] Built target enkf_gfs.x
> ls -al bin/gsi_global.x
-rwxr-xr-x. 1 1000 1001 38298632 Jun 19 18:03 bin/gsi_global.x