Skip to content

Commit

Permalink
add notes on compiler selection with cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
tukss committed Jun 21, 2024
1 parent a9bf124 commit 6873fd8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/source/User_Guide/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,13 @@ Alternative: Configure using CMake
# Build code in parallel and install in the bin directory
cmake --build -j -t install
To select a specific compiler set the ``FC`` (Fortran) and ``CC`` (C) environment variables when you run the first command.

.. code-block:: bash
# Select the Intel compilers.
FC=ifort CC=icc cmake -Bbuild
.. _spack-setup:

Alternative: Installation using Spack
Expand Down

0 comments on commit 6873fd8

Please sign in to comment.