When compiling with Visual Studio and existing env::var("NUM_JOBS") but without any build_args I get:
running: "cmake" "--build" "." "--target" "install" "--config" "Release" "--" "/MP8"
Microsoft (R) Build Engine version 16.10.2+857e5a733 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
MSBUILD : error MSB1001: Unknown switch.
Switch: /MP8
For switch syntax, type "MSBuild -help"
When compiling with
Visual Studio
and existingenv::var("NUM_JOBS")
but without anybuild_args
I get:Relevant lines are here: https://github.com/alexcrichton/cmake-rs/blob/5f89f90ee5d7789832963bffdb2dcb5939e6199c/src/lib.rs#L821