andriyDev / recastnavigation-rs-sys

Raw Rust FFI bindings for recastnavigation.
MIT License
7 stars 2 forks source link

Check the opt level to determine whether the build is a debug build. #7

Closed andriyDev closed 1 year ago

andriyDev commented 1 year ago

Previously we used the DEBUG var, but the cmake crate uses opt level to determine which build type to use. This meant users could manually change their opt level (while still being on a debug build) which would make us look for the wrong lib file.

Fixes #4.