FindBoost CMake
On Ubuntu 20.04 with boost 1.71 cmake emmits the follow warning:
CMake Warning at walberla/cmake/FindBoost.cmake:896 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
since our current FindBoost currently only supports up to version 1.70.
Our FindBoost.cmake is a copy of the official FindBoost in the cmake git from March 2019.
However, simply updating to the newest version of the FindBoost file from the official cmake git does not work since it contains
cmake_policy(SET CMP0102 NEW)
which was introduced in CMake 3.17 and leads to an error in lower versions.
So we have three options:
- keep the warning
- adjust the FindBoost.cmake manually which makes it hard to update in the future
- remove our own FindBoost.cmake and hope that we will not run into a configuration where boost is newer cmake
I would vote for option three.
What do others think? Especially @eibl since you introduced our copy of FindBoost