报错信息:
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 warning is for project developers. Use -Wno-dev to suppress it.
CMake Error at /usr/local/lib/cmake/Boost-1.75.0/BoostConfig.cmake:240 (if):
if given arguments:
"ALL" "IN_LIST" "Boost_FIND_COMPONENTS"
Unknown arguments specified
Call Stack (most recent call first):
/usr/local/share/cmake-3.5/Modules/FindBoost.cmake:245 (find_package)
test/CMakeLists.txt:342 (find_package)
-- Configuring incomplete, errors occurred!
解决方法:
今天重装eigen3时cmake编译源码时报错,在网上查了半个小时,终于看到一位大佬的博客。
解决cmake Policy CMP0057 is not set: Support new IN_LIST if() operator - 灰信网(软件开发博客聚合)
解决cmake Policy CMP0057 is not set: Support new IN_LIST if() operator_Woosual的博客-CSDN博客
注意要用超级用户权限写入