rust-lang / cmake-rs

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

fix: the cmake run command #199

Open ZengGengSen opened 10 months ago

ZengGengSen commented 10 months ago
1. Use the -S option to specify the source directory
2. Use the -B option to specify the build directory
3. If no target is specified, the build command does
   not know the specific target
4. Add an install instruction at the end
ZengGengSen commented 10 months ago
fix(cmake): fix the install command error

    1. The last installation instruction, in the case
       of mul-config, will cause an error and require
       the addition of the parameter --config 'build_type'

    2. The penultimate build instruction used an error
       in --config, which may cause the profile and
       build_type to be unequal
tgross35 commented 2 months ago

Could you clarify what exactly the problem you are encountering is?

ZengGengSen commented 1 month ago

Could you clarify what exactly the problem you are encountering is?

  1. Not specifying -S and -B can result in the need to recompile the entire project some config,
  2. Some projects do not have an install target, so you must manually specify the target to compile
tgross35 commented 1 month ago

Thanks for the clarification, that makes more sense. For reference, do you have an example of what the error output is?

I'll try to take a closer look at this soon.