As we discovered after merging our latest build system refactorings, Cargo may actually run build scripts in parallel when multiple configurations are used.
We want to deal with this by using the OUT_DIR for cargo builds, as is encouraged by Cargo.
For CMake integration we want to only export the crate that is imported by CMake and require the user to manually provide different export directories when building multiple configurations.
As we discovered after merging our latest build system refactorings, Cargo may actually run build scripts in parallel when multiple configurations are used.
We want to deal with this by using the OUT_DIR for cargo builds, as is encouraged by Cargo.
For CMake integration we want to only export the crate that is imported by CMake and require the user to manually provide different export directories when building multiple configurations.