Versions Compared

Key

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

...

cmake options

doc

default

CMAKE_INSTALL_PREFIXwhere you want to install your ecFlow /usr/local
CMAKE_BUILD_TYPE

to select the type of compilation:

  • Debug
  • RelWithDebInfo
  • Release (fully optimised compiler options)
  • Production
Release
CMAKE_CXX_FLAGSmore flags  for the C++ compiler
ENABLE_SERVERbuild the ecFlow serveron
ENABLE_PYTHONenable python interfaceon
ENABLE_UIenable the build of ecflowUI (requires Qt)on
CMAKE_PREFIX_PATH

use to provide a path to dependent libraries that are installed in non-system locations.
For example, if you have installed Qt in a non-system location, you should set the path in this variable.


ENABLE_ALL_TESTS

enable performance, migration, memory leak, and regression tests

off
ENABLE_SSL

Encrypted communication for user commands 

Please see: Open SSL for more details.

on
BOOST_ROOT

where to find boost ( if non-standard installation  )

If not specified cmake will look for an environment variable of the same name.


ENABLE_STATIC_BOOST_LIBS

By default we build with static boost libs, to use shared boost list set to OFFon

The  C++  compilers are chosen by CMake. (This can be overwritten by setting the environment variables CXX on the command line before you call cmake, to the preferred compiler).

...

Code Block
languagebash
titlecmake/ecbuild
cd $WK
mkdir build; cd build;

# Go with defaults, will build with CMAKE_BUILD_TYPE=Release and install to /usr/local
cmake .. 
# Override install prefix 
# cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/apps/ecflow/5.5.13 

# do NOT build the gui.
# cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/apps/ecflow -DCMAKE_BUILD_TYPE=Release -DENABLE_UI=OFF

# ignore Wdeprecated-declarations compiler warning messages and do NOT build python api
# cmake .. -DCMAKE_CXX_FLAGS="-Wno-deprecated-declarations"  -DENABLE_PYTHON=OFF

# Use -j option to speed up compilation. Determine number of cpu's
CPUS=$(lscpu -p | grep -v '#' | wc -l)
make -j${CPUS}
make check
make install

...