rust-lang / cmake-rs

Rust build dependency for running cmake
https://docs.rs/cmake
Apache License 2.0
305 stars 121 forks source link

MSBUILD : error MSB1001: Unknown switch. #122

Closed syrel closed 3 years ago

syrel commented 3 years ago

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"

Relevant lines are here: https://github.com/alexcrichton/cmake-rs/blob/5f89f90ee5d7789832963bffdb2dcb5939e6199c/src/lib.rs#L821