cmake-rs icon indicating copy to clipboard operation
cmake-rs copied to clipboard

Support for passing to CMake any random string

Open lilianmoraru opened this issue 8 years ago • 3 comments

Currently, the crate limits the user on what kind of options he can pass to CMake. I am trying to pass -C path/to/a/cmake/script.cmake(it's a script that speeds-up build-times, I use it for all cmake projects) and it is just impossible to do that with the current API. I think there should be an option where the user can pass flags himself, whatever he wants.

lilianmoraru avatar Apr 08 '17 22:04 lilianmoraru

Seems reasonable to me! Would you be interested in sending a PR?

alexcrichton avatar Apr 10 '17 15:04 alexcrichton

I could do that. What do you think would be the appropriate naming for these functions? I am thinking(inspired by std::process::Command) of: cmake_arg/cmake_args or arg/args? At least for me, arg/args seems too ambiguous.

lilianmoraru avatar Apr 10 '17 20:04 lilianmoraru

Yeah cmake_arg and cmake_args sounds good to me!

alexcrichton avatar Apr 11 '17 16:04 alexcrichton