rust-lang / cmake-rs

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

Allow running configure only #207

Open jonhoo opened 1 month ago

jonhoo commented 1 month ago

Currently it's possible to skip the "target" step (install by default), but it's not possible to skip the cmake --build invocation (i.e., to only run configure). It'd be nice if there was something like .configure() as a dual to .build() that exited right after configure is complete here:

https://github.com/rust-lang/cmake-rs/blob/c4a60dd154dd90e469dffc41a1faa717704f90b3/src/lib.rs#L812-L817

The motivation here is for crates that only need headers to be put in the right place, but don't necessarily need the underlying library to be built, such as if they just need to invoke bindgen: https://github.com/jonhoo/rust-ibverbs/pull/36