DAGMC CMake variables¶
This page describes the specific CMake variables that affect the DAGMC build.
Note that unless set, all boolean options default to OFF.
-DMOAB_DIR=/path/to/moabPath to MOAB.
-DBUILD_MCNP5=ONBuild DAG-MCNP5. (Default: OFF)
-DBUILD_MCNP6=ONBuild DAG-MCNP6. (Default: OFF)
-DMCNP5_DATAPATH=/path/to/mcnp/dataSet the path where the DAG-MCNP5 executable will look for nuclear data. If this variable is not set, it will look for the data in the location specified by the$DATAPATHenvironment variable instead.
-DMCNP6_DATAPATH=/path/to/mcnp/dataSet the path where the DAG-MCNP5 executable will look for nuclear data. If this variable is not set, it will look for the data in the location specified by the$DATAPATHenvironment variable instead.
-DBUILD_MCNP_PLOT=ONEnable DAG-MCNP5/6 plotting capability. (Default: OFF)
-DBUILD_MCNP_MPI=ONIf building DAG-MCNP5/6, build MPI versions. (Default: OFF)
-DBUILD_MCNP_PYNE_SOURCE=ONIf building DAG-MCNP5/6, build with PyNE mesh source routine support. (Default: OFF)
-DBUILD_FLUKA=ONBuild FluDAG and the fludag library. If this option is turned on,-DFLUKA_DIRmust also be specified. (Default: OFF)
-DFLUKA_DIR=/path/to/flukaSet the path to Fluka. It should typically be set to the$FLUPROenvironment variable.
-DBUILD_GEANT4=ONBuild DAG-Geant4 and the DagSolid library. If this option is turned on,-DGEANT4_DIRmust be specified. (Default: OFF)
-DGEANT4_DIR=/path/to/geant4Set the path to Geant4.
-DBUILD_TALLY=ONBuild the DagTally interface. (Default: ON)
-DBUILD_BUILD_OBB=ONBuild the build_obb tool. (Default: ON)
-DBUILD_MAKE_WATERTIGHT=ONBuild the make_watertight tool. (Default: ON)
-DBUILD_TESTS=ONBuild unit tests where appropriate. (Default: ON)
-DBUILD_CI_TESTS=ONBuild everything needed to run the continuous integration tests. (Default: OFF)
-DBUILD_SHARED_LIBS=ONBuild shared libraries. (Default: ON)
-DBUILD_STATIC_LIBS=ONBuild static libraries. (Default: ON)
-DBUILD_STATIC_EXE=ONBuild static executables. (Default: OFF)
-DBUILD_PIC=ONBuild with position-independent code. (Default: OFF)
-DBUILD_RPATH=ONBuild with RPATH functionality. (Default: ON)

