corrosion-rs / corrosion

Marrying Rust and CMake - Easy Rust and C/C++ Integration!
https://corrosion-rs.github.io/corrosion/
MIT License
1.02k stars 97 forks source link

Legacy CMake: Respect `CMAKE_<XYZ>_OUTPUT_DIRECTORY` #522

Closed jschwe closed 2 months ago

jschwe commented 2 months ago

Make a best effort with old CMake versions to respect output directories. We can't know which properties the user might set or change after the crates are imported, but we can respect the CMAKE_<XYZ> variables which are set before the crates are imported.