muduo库编译时 cmake报错
cmake报错:
CMake Error at /usr/lib/cmake/Boost-1.75.0/BoostConfig.cmake:240 (if):
if given arguments:
"ALL" "IN_LIST" "Boost_FIND_COMPONENTS"
Unknown arguments specified
原因:muduo目录下的CMakeLists.txt文件,第一行中cmake_minimum_required(VERSION 2.6)指定的cmake版本过低造成的
解决办法:把cmake_minimum_required修改成当前系统安装的cmake版本号就可以了
参考链接:https://blog.csdn.net/weixin_42227520/article/details/108214672