commit | c5231ba29e47101b772572f730af5b2bc82fbd53 | [log] [tgz] |
---|---|---|
author | Craig Scott <craig.scott@crascit.com> | Sun Apr 14 18:07:41 2024 +1000 |
committer | Brad King <brad.king@kitware.com> | Fri Apr 19 11:44:09 2024 -0400 |
tree | 450618966f266499ba95aac1f7496411f01cad21 | |
parent | 8ac7958e3a2d24258cc4ebf0d6c44eccfb8a849a [diff] |
find_package: Save/restore PACKAGE_PREFIX_DIR Package configuration files generated by `configure_package_config_file` set this variable in `@PACKAGE_INIT@` and then use it later. There may be intervening calls to `find_package`, e.g., via `find_dependency`. If the loaded package also used `configure_package_config_file`, it may change the value of `PACKAGE_PREFIX_DIR`. Explicitly save and restore the value to avoid this. Fixes: #25827