Set CMAKE_CROSSCOMPILING and CMAKE_SYSTEM_NAME when cross compiling with cmake #25477
Labels
6.topic: cross-compilation
Building packages on a different platform than they will be used on
Milestone
Issue description
CMAKE_CROSSCOMPILING
is not set when a cross compile is in progress.https://cmake.org/cmake/help/v3.0/variable/CMAKE_CROSSCOMPILING.html
This is necessary for several packages, such as LLVM, to cross compile correctly.
When
buildPlatform != hostPlatform
the additional cmake argument-DCMAKE_CROSSCOMPILING=True
should be usedThe text was updated successfully, but these errors were encountered: