...
cmake options | doc | default | ECMWF Scpecific |
---|---|---|---|
CMAKE_INSTALL_PREFIX. | where you want to install your Magics library | /usr/local | |
CMAKE_BUILD_TYPE | to select the type of compilation:
| ? | Debug |
CMAKE_CXX_FLAGS | More flags for the C++ compiler | ||
ENABLEWITH_GRIB | enable grib support | onauto | on |
GRIB_API_PATH | where to find grib-api | /usr/local/lib/metaps/lib/grib_api/1.11.0 | |
WITHENABLE_NETCDF | enable netcdf support | onauto | on |
NETCDF_PATH | where to find netcdf | ||
WITHENABLE_ODB | enable odb support | off | off |
ODB_API_PATH | where to find odb | /usr/local/apps/odb_api/0.9.28 | |
WITHENABLE_BUFR | enable bufr support | off | off (but if on we have to set PGI_PATH to /usr/local/apps/pgi/pgi-10.8/linux86-64/10.8/libso) |
BUFR_LIB | |||
WITHENABLE_PYTHON | enable python supportinterface | onauto | on |
WITHENABLE_FORTRAN | enable fortran supportinterface | on | on |
WITHENABLE_METVIEW | enable metview support(and Qt support) | off | off |
WITHENABLE_CAIRO | enable cairo support | on | on |
BOOST_ROOT | where to find boost ( if non-standard installation | /usr/local/apps/boost/1.50.0 ( for the worksation) | |
PROJ4_PATH | where to find proj4 ( if non-standard installation | /usr/local/apps/proj4/4.8.0/LP64 | |
CMAKE_INSTALL_PREFIX. | where you want to install your Magics library | ||
CMAKE_BUILD_TYPE | to select the type of compilation:
| ? | Debug |
CMAKE_CXX_FLAGS | |||
CMAKE_CXX |
if auto, CMake will enabled the feature, if it possible, but will not fail if not.
To make sure that a feature is really enabled, you will have to specify with the otion ex: -DENABLE_GRIB=ON. In that case CMake will fail if the grib support can not be enabled.
The C, C++ and Fortran compilers are chosen by CMake. (This can be overwritten by setting the variables CC, CXX and F77, on the configure command line, to the preferred compiler). Further the variable CMAKE_CXX_FLAGS can be used to set compiler flags for optimisation or debugging. For example, it is recommended to use CMAKE_CXX_FLAGS="-O2 -mtune=native" or any other optimisation to compile Magics.
...