error: could not compile rust-bridge-ortools (lib) due to 1 previous error; 1 warning emitted
the error was
error: environment variable `OUT_DIR` not defined at compile time
--> rust-bridge-ortools/src/lib.rs:14:1
|
14 | / include_cpp! {
15 | | #include "ortools/base/logging.h"
16 | | #include "ortools/sat/cp_model.h"
17 | | #include "ortools/sat/cp_model.pb.h"
... |
21 | | // generate!("CpModelBuilder") // add this...
22 | | }
| |_^
|
= help: Cargo sets build script variables at run time. Use `std::env::var("OUT_DIR")` instead
= note: this error originates in the macro `env` which comes from the expansion of the macro `include_cpp` (in Nightly builds, run with -Z macro-backtrace for more info)
error: could not compile
rust-bridge-ortools
(lib) due to 1 previous error; 1 warning emittedthe error was