cmake .. \
-DPYTHON_INCLUDE_DIR=$(python -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") \
-DPYTHON_LIBRARY=$(python -c "import distutils.sysconfig as sysconfig; print(sysconfig.get_config_var('LIBDIR'))")
错误信息:
Looking for Boost libraries...
-- Boost version: 1.73.0
Success!
-- Could NOT find Boost
Found Boost libraries directory:
Found Boost include directory:
/home/li/anaconda371/envs/py374/include
-- Found Eigen3: /home/li/anaconda371/envs/py374/include/eigen3
Found Eigen3 include directory:
/home/li/anaconda371/envs/py374/include/eigen3
CMake Error at /home/li/anaconda371/envs/py374/lib/cmake/libint2/libint2-config.cmake:120 (list):
list does not recognize sub-command PREPEND
Call Stack (most recent call first):
CMakeLists.txt:99 (FIND_PACKAGE)
CMake Error at /home/li/anaconda371/envs/py374/lib/cmake/libint2/libint2-config.cmake:133 (include):
include could not find load file:
CMakeFindDependencyMacro
Call Stack (most recent call first):
CMakeLists.txt:99 (FIND_PACKAGE)
CMake Error at /home/li/anaconda371/envs/py374/lib/cmake/libint2/libint2-config.cmake:139 (find_dependency):
Unknown CMake command "find_dependency".
Call Stack (most recent call first):
CMakeLists.txt:99 (FIND_PACKAGE)