Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow running configure only #207

Open
jonhoo opened this issue Jul 20, 2024 · 0 comments
Open

Allow running configure only #207

jonhoo opened this issue Jul 20, 2024 · 0 comments

Comments

@jonhoo
Copy link

jonhoo commented Jul 20, 2024

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:

cmake-rs/src/lib.rs

Lines 812 to 817 in c4a60dd

if self.always_configure || !build.join("CMakeCache.txt").exists() {
cmd.args(&self.configure_args);
run(cmd.env("CMAKE_PREFIX_PATH", cmake_prefix_path), "cmake");
} else {
println!("CMake project was already configured. Skipping configuration step.");
}

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: jonhoo/rust-ibverbs#36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants