Skip to content
Snippets Groups Projects
Commit b069ed0f authored by Christian Engwer's avatar Christian Engwer
Browse files

[doc] mention how to set cmake variables from an opts file

parent 7a776da3
No related branches found
No related tags found
1 merge request!12017-05 upstream merge
......@@ -229,7 +229,7 @@ How do I change my compiler and compiler flags?
In general, there are multiple ways to do this:
* Setting the CMake variables :ref:`CMAKE_<LANG>_COMPILER` (with :code:`LANG` being :code:`C`
or :code:`CXX` or :code:`Fortran`) from the opts file
or :code:`CXX` or :code:`Fortran`) from the opts file, e.g. via :code:`CMAKE_FLAGS="-DCMAKE_CXX_COMPILER=otherc++"`.
* Setting those variables within the project with the :code:`set` command
* Setting the environment variables :code:`CC`, :code:`CXX`, :code:`FC` etc.
......
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