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:
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
Currently it's possible to skip the "target" step (
install
by default), but it's not possible to skip thecmake --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