corrosion-rs / corrosion

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

Replace $<CONFIG> in IMPORTED_LOCATION #459

Closed jschwe closed 10 months ago

jschwe commented 10 months ago

Users might define an OUTPUT_DIRECTORY containing $<CONFIG>. Copying the byproducts works fine, but for the imported location we need to replace the genex. This is possible, since in single config mode we know the config, and in multi config mode we know the config for the _CONFIG variants of IMPORTED_LOCATION.

Fixes #453