cmake过时策略导致与boost版本不兼容

本文介绍了如何解决在重新安装Eigen3时遇到的CMake编译错误,重点提及了cmakePolicy CMP0057设置问题以及Pastix backend的配置,提供了解决方案和相关博客链接。

报错信息: 

A version of Pastix has been found but pastix_nompi.h does not exist in the include directory. Because Eigen tests require a version without MPI, we disable the Pastix backend.
CMake Warning (dev) at /usr/local/lib/cmake/Boost-1.75.0/BoostConfig.cmake:240 (if):
  Policy CMP0057 is not set: Support new IN_LIST if() operator.  Run "cmake
  --help-policy CMP0057" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  IN_LIST will be interpreted as an operator when the policy is set to NEW.
  Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
  /usr/local/share/cmake-3.5/Modules/FindBoost.cmake:245 (find_package)
  test/CMakeLists.txt:342 (find_package)
This warni

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值