安装
见https://blog.csdn.net/knowledgeaaa/article/details/80323743
用brew install boost即可,需要用的文件夹为/usr/local/Cellar/boost/1.73.0/include和/usr/local/Cellar/boost/1.73.0/lib(版本号可能不一样)
clion使用
在CMakeLists.txt里面,加上:
1 | include_directories(/usr/local/Cellar/boost/1.73.0/include) |