Make the use of system-wide Meson and Ninja easier by frx-wintermute · Pull Request #1951 · su2code/SU2

pcarruscag

pcarruscag

pcarruscag

github-advanced-security[bot]

pcarruscag

@frx-wintermute

See github issue [#1945] for more information on the rationale.

[#1945]: <#1945>

If a user wants to build SU2 from source and prefers to use
system-wide Meson and Ninja (assuming they are installed on the OS),
rather than SU2-specific copies, it is possible to avoid downloading
SU2-specific versions:

  $ SU2_MESON='no' ./meson.py
  $ export CXXFLAGS=<preferred_compiler_options>
  $ meson setup <preferred_config_options> build
  $ ninja -C build install

The default behavior is unchanged. If a user does not have system-wide
Meson and Ninja installed on the OS and/or prefers to use SU2-specific
copies, it is stll possible to download and use SU2-specific versions
of Meson and Ninja:

  $ export CXXFLAGS=<preferred_compiler_options>
  $ ./meson.py setup <preferred_config_options> build
  $ ./ninja -C build install

@frx-wintermute

If a user wants to build SU2 from source and prefers to use
system-wide Meson and Ninja (assuming they are installed on the OS),
rather than SU2-specific copies, it is possible to avoid downloading
SU2-specific versions:

  $ ./preconfigure.py
  $ export CXXFLAGS=<preferred_compiler_options>
  $ meson setup <preferred_config_options> build
  $ ninja -C build install

The default behavior is unchanged. If a user does not have system-wide
Meson and Ninja installed on the OS and/or prefers to use SU2-specific
copies, it is stll possible to download and use SU2-specific versions
of Meson and Ninja:

  $ export CXXFLAGS=<preferred_compiler_options>
  $ ./meson.py setup <preferred_config_options> build
  $ ./ninja -C build install

@frx-wintermute

It's now unused in meson.py (its use has been moved to
preconfigure.py).

@frx-wintermute

pcarruscag