解决办法:
在boostconfig.cmake文件中的239行前加入以下代码
if(POLICY CMP0057)
cmake_policy(SET CMP0057 NEW)
endif()
参考的两篇博客:
解决cmake Policy CMP0057 is not set: Support new IN_LIST if() operator - 灰信网(软件开发博客聚合) (freesion.com) (7条消息) 解决cmake Policy CMP0057 is not set: Support new IN_LIST if() operator_policy cmp0148 is not set: the findpythoninterp an_Woosual的博客-CSDN博客