FindBoost: Enhance forward and backward compatibility
- Check if
Boost_<comp>_FOUNDis defined before setting it - Fix check for Boost 1.70.0 style Boost CMakeConfig
-
Boostsystem_FOUNDstyle was AFAIK never used - Boost 1.70.0 uses
boost_system_FOUNDandBoost_SYSTEM_FOUND - Legacy Boost CMake Config (according to tests) uses
Boost_SYSTEM_FOUND
-
- Set legacy variables as defined in the Docu of FindBoost if they are not set
Open questions:
I'm not sure if those FPHSA calls should be done here. Looks rather to be done upstream in Boost?
Can someone explain to me how the configs are supposed to handle messages and (set or not) the*_FOUNDvariable? Is a config supposed to callFPHSA?
@dennisklein Where did theBoostsystem_FOUNDstyle check come from?
Fixes: #19368 (closed)
Topic-rename: FindBoost-component
Edited by Brad King