From 6eb14ed9bc86ae79cacf5993ed5a3758f8745579 Mon Sep 17 00:00:00 2001 From: SSE4 Date: Thu, 11 Nov 2021 12:37:18 +0700 Subject: [PATCH] - [meson] add note about cross-building Signed-off-by: SSE4 --- reference/conanfile/tools/meson.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/reference/conanfile/tools/meson.rst b/reference/conanfile/tools/meson.rst index 0bddf721a8ca..a390d71d4be7 100644 --- a/reference/conanfile/tools/meson.rst +++ b/reference/conanfile/tools/meson.rst @@ -62,6 +62,15 @@ etc. This includes but is not limited to the following: but with additional information to describe host, target, and build machines (such as the processor architecture). +**NOTE**: unlike CMake, meson cannot automatically deduce the compiler executable in case of cross-building, so it has to be +explicitly specified within conan profile, for instance, the following might be required in case of Visual Studio: + +.. code-block:: text + + [env] + CC=cl + CXX=cl + Check out the meson documentation for more details on native and cross files: * `Machine files `_