Below are examples of commonly used options for the GAMBIT cmake build system. You pass these to cmake using the -D
flag, e.g. cmake -DOPTION1=value1 -DOPTION2=value2 ..
For a more complete list of cmake variables, take a look in the file CMakeCache.txt
which is generated in your build directory when you first run cmake ..
# Set the build type: CMAKE_BUILD_TYPE (Release|Debug|None)
-DCMAKE_BUILD_TYPE=None
# Switch MPI on/off: WITH_MPI (On|Off)
-DWITH_MPI=On
# Ditch GAMBIT components that you don't intend to use: itch
-Ditch="ColliderBit;NeutrinoBit;Mathematica"
# List the FlexibleSUSY models to build: BUILD_FS_MODELS
# The names of the available FlexibleSUSY models correspond to
# the subdirectories in
# your/path/to/gambit/contrib/MassSpectra/flexiblesusy/models
-DBUILD_FS_MODELS="MDM;CMSSM"
# Set the C compiler: CMAKE_C_COMPILER
-DCMAKE_C_COMPILER=/usr/bin/gcc-8
# Additional C compiler flags: CMAKE_C_FLAGS
-DCMAKE_C_FLAGS=-your-flags-here
# Set the C++ compiler: CMAKE_CXX_COMPILER
-DCMAKE_CXX_COMPILER=/usr/bin/g++-8
# Additional C++ compiler flags: CMAKE_CXX_FLAGS
-DCMAKE_CXX_FLAGS=-your-flags-here
# Set the Fortran compiler: CMAKE_Fortran_COMPILER
-DCMAKE_Fortran_COMPILER=/usr/bin/gfortran-8
# Additional Fortran compiler flags: CMAKE_Fortran_FLAGS
-DCMAKE_Fortran_FLAGS=-your-flags-here
# Switch verbose build output on/off: CMAKE_VERBOSE_MAKEFILE (On|Off)
# (Useful for debugging build problems.)
-DCMAKE_VERBOSE_MAKEFILE=On
# Set the Eigen3 include directory: EIGEN3_INCLUDE_DIR
-DEIGEN3_INCLUDE_DIR=your/path/to/eigen
# Set the Python executable: PYTHON_EXECUTABLE
-DPYTHON_EXECUTABLE=/usr/bin/python3
# Set the Python include directory: PYTHON_INCLUDE_DIR
-DPYTHON_INCLUDE_DIR=/usr/include/python3.7m
# Set the Python library: PYTHON_LIBRARY
-DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython3.7m.so
# Switch HepMC on/off: WITH_HEPMC (On|Off)
-DWITH_HEPMC=On
# Switch RestFrames on/off: WITH_RESTFRAMES (On|Off)
-DWITH_RESTFRAMES=On
# Switch ROOT on/off: WITH_ROOT (On|Off)
-DWITH_ROOT=On
# For Pythia: Switch Intel's multi-file interprocedural
# optimization on/off: PYTHIA_OPT (On|Off)
-DPYTHIA_OPT=On
# Create Graphviz files: HAVE_GRAPHVIZ (On|Off)
-DHAVE_GRAPHVIZ=On