mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
added section on build types to install doc
This commit is contained in:
parent
61ace1ab09
commit
d118617e29
1 changed files with 21 additions and 0 deletions
|
|
@ -363,6 +363,27 @@ should be used:
|
|||
|
||||
.. _usersguide_compile_mpi:
|
||||
|
||||
Specifying the Build Type
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
OpenMC can be configured for debug, release, or release with debug info by setting
|
||||
the `CMAKE_BUILD_TYPE` option.
|
||||
|
||||
Debug
|
||||
Enable debug compiler flags with no optimization `-O0 -g`.
|
||||
|
||||
Release
|
||||
Disable debug and enable optimization `-O3 -DNDEBUG`.
|
||||
|
||||
RelWithDebInfo
|
||||
(Default if no type is specified.) Enable optimization and debug `-O2 -g`.
|
||||
|
||||
Example of configuring for Debug mode:
|
||||
|
||||
.. code-block:: sh
|
||||
|
||||
cmake -DCMAKE_BUILD_TYPE=Debug /path/to/openmc
|
||||
|
||||
Compiling with MPI
|
||||
++++++++++++++++++
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue