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

Create CMake targets earlier #523

Closed jschwe closed 2 months ago

jschwe commented 2 months ago

Create the main CMake targets earlier, so we can set target properties on them early in the generator, so we can use them later on during configuration.

We don't strictly need this right now, but it reduces the diff to the stable/v0.5 branch and being able to set properties earlier is something that seems like it will be useful.