-
Notifications
You must be signed in to change notification settings - Fork 13
Description
Currently, CMakePresets does not support cross-compilation scenarios where developers need to build binaries for a target platform that differs from the host platform. Specifically, in environments where Windows binaries need to be built on a Linux host using the MinGW toolchain, there is no straightforward way to configure CMakePresets to handle this scenario.
I am requesting an enhancement to the CMakePresets functionality to natively support cross-compilation. The proposed feature should allow users to specify different compilers and tools for the target platform directly within the CMakePresets configuration.
For example, when building Windows binaries on a Linux host, the following compilers are typically used:
-
C Compiler: /usr/bin/x86_64-w64-mingw32-gcc
-
C++ Compiler: /usr/bin/x86_64-w64-mingw32-g++
The new feature should allow these compilers to be specified in the CMakePresets file, alongside the appropriate target system configurations, to enable seamless cross-compilation.