You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Something like this would allow complete control of the build using only a cross platform cmake script:
build_unix = ["cmake $CARGO_ROOT", "make"]
bulid_windows = ["cmake -G "MinGW Makefiles" $CARGO_ROOT", "mingw32-make"]
cmake will perform the installs for me using $OUT_DIR as the prefix, however this puts my libs in $OUT_DIR/lib (they are managed via externalproject_add so I cannot easily alter the install hierarchy)
While not fully implemented in Cargo itself, now that #792 is landed I'm going to close this. Crates can now have build dependencies (in the build-dependencies array) and something like a cmake-friendly crate can grow in the ecosystem over time, making the build script for a package quite small!
Desired Use
Something like this would allow complete control of the build using only a cross platform cmake script:
build_unix = ["cmake $CARGO_ROOT", "make"]
bulid_windows = ["cmake -G "MinGW Makefiles" $CARGO_ROOT", "mingw32-make"]
Current Use
I am using cmake to check system dependencies and bootstrap/install the required c libraries but have to do something like the following:
The text was updated successfully, but these errors were encountered: