Skip to content
Snippets Groups Projects
Commit 72884dcf authored by Dominic Kempf's avatar Dominic Kempf
Browse files

Use less code-blocks.

parent a1d1d69c
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@
# This is a cmake builtin command.
# For detailed information, check the cmake documentation:
#
# .. code-block: bash
# ::
#
# cmake --help-command add_subdirectory
#
......@@ -31,7 +31,7 @@
# This is a cmake builtin command.
# For detailed information, check the cmake documentation:
#
# .. code-block: bash
# ::
#
# cmake --help-command install
#
......@@ -42,7 +42,7 @@
# This is a cmake builtin command.
# For detailed information, check the cmake documentation:
#
# .. code-block: bash
# ::
#
# cmake --help-command add_executable
#
......@@ -53,7 +53,7 @@
# This is a cmake builtin command.
# For detailed information, check the cmake documentation:
#
# .. code-block: bash
# ::
#
# cmake --help-command add_test
#
......@@ -65,7 +65,7 @@
# This is a cmake builtin variable.
# For detailed information, check the cmake documentation:
#
# .. code-block: bash
# ::
#
# cmake --help-variable CMAKE_\<LANG\>_COMPILER
#
......@@ -77,7 +77,7 @@
# This is a cmake builtin variable.
# For detailed information, check the cmake documentation:
#
# .. code-block: bash
# ::
#
# cmake --help-variable CMAKE_\<LANG\>_FLAGS
#
......@@ -88,7 +88,7 @@
# This is a cmake builtin command.
# For detailed information, check the cmake documentation:
#
# .. code-block: bash
# ::
#
# cmake --help-command find_package
#
......@@ -276,6 +276,7 @@ to have for each configuration one out-of-source build. We have nevertheless imp
by setting the variable :ref:`ALLOW_CXXFLAGS_OVERWRITE` in your opts file. You can then type:
.. code-block: bash
make CXXFLAGS="<your flags>" <target>
Furthermore any C pre-processor variable of the form :code:`-DVAR=<value>` can be overloaded on the command line
......@@ -304,7 +305,8 @@ Can I disable an external dependency?
To disable an external dependency :code:`Foo`, add
.. code-block:
::
-DCMAKE_DISABLE_FIND_PACKAGE_Foo=TRUE
to your opts file. The name of the dependency is case sensitive but there is no canonical naming
......@@ -321,7 +323,8 @@ How do I switch between parallel and sequential builds?
Dune builds with CMake are parallel if and only if MPI is found. To have a sequential build despite an
installed MPI library, you have to explicitly disable the corresponding find module by setting
.. code-block:
::
-DCMAKE_DISABLE_FIND_PACKAGE_MPI=TRUE
in the :code:`CMAKE_FLAGS` of your opts file, as described in section :ref:`disable`.
......@@ -346,7 +349,8 @@ the build directory and maybe save some compilation time afterward.
Whenever you experience any problems, your first step should be to delete all build directories. Nice trick:
.. code-block: bash
::
dunecontrol exec rm -rf build-cmake
This will remove all build directories from all DUNE modules.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment