配置PCL1.13.0报错:Could NOT find Boost: missing: system filesystem date_time iostreams serialization

使用cmake构建pcl库报错:

Could NOT find Boost: missing: system filesystem date_time iostreams serialization (found C:/Program Files/PCL 1.13.0/3rdParty/Boost/lib/cmake/Boost-1.80.0/BoostConfig.cmake (found suitable version "1.80.0", minimum required is "1.65.0"))
CMake Error at C:/Program Files/PCL 1.13.0/cmake/PCLConfig.cmake:59 (message):
  common is required but boost was not found

错误

在这里插入图片描述

原因

pcl1.13.0版本对应vs2022,vs2019不兼容,所以报错
在下载pcl1.13.0的文件上可以看到
在这里插入图片描述

解决方法

换成vs2022