You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using cargo build on Amazon Linux 5.2, I run into the following error. One of my dependencies depends on this library. After looking up the issue, it seems that --parallel has been removed from CMake since 3.20.
Starting in CMake 3.20, the cmake command line now errors out when passed invalid flags. The -j flag is invalid when configuring a project ( what you are doing ). It should be passed when compiling the project ( cmake --build )
Since this problem is occurring in "cmake" "--build" "." "--target" "install" "--config" "Release" "--parallel" "2" it's not that cmake is too new. Actually it's most likely that cmake is too old. This is fixed in rust-lang/cmake-rs@93856b2 but that commit has not been included in a release yet for some reason. Unfortunately the NUM_JOBS variable is set by cargo (here) and I'm not sure there's a good way to skip it, so I guess the answer is either upgrade to at least cmake 3.12 or wait for the next cmake-rs release (rust-lang/cmake-rs#154).
When using
cargo build
on Amazon Linux 5.2, I run into the following error. One of my dependencies depends on this library. After looking up the issue, it seems that--parallel
has been removed from CMake since 3.20.Reference: https://gitlab.kitware.com/cmake/cmake/-/issues/21978
This is preventing my entire project from building, I don't have a fix other than using an older CMake version.
The text was updated successfully, but these errors were encountered: