I would recommand trying this patch which is imminent to be merged in CMake (just remplace your local FindBoost.cmake found in your CMake install dir): https://gitlab.kitware.com/cmake/cmake/merge_ requests/1625 Here is the related discussion: https://gitlab.kitware.com/cmake/cmake/ issues/17575