cmake-rs icon indicating copy to clipboard operation
cmake-rs copied to clipboard

Improve cross compiling support

Open messense opened this issue 3 years ago • 0 comments
trafficstars

This PR changes cmake-rs to fill out CMAKE_SYSTEM_NAME and CMAKE_SYSTEM_PROCESSOR based CARGO_CFG_TARGET_OS and CARGO_CFG_TARGET_ARCH when cross compiling while CMAKE_TOOLCHAIN_FILE and CMAKE_SYSTEM_NAME isn't set by user.

It's tested on CI using cross.

Closes #75 Closes #80 Closes #151

messense avatar Jul 26 '22 10:07 messense