使用cmake进行make install的问题

时间:2014-11-17 17:31:07

标签: cmake

当我使用make installsudo make install时,我反复收到此错误:

file Internal CMake error when trying to open file:
  project_dir/install_manifest.txt for writing.

如果我查看cmake_install.cmake文件,有问题的行总是在这里:

file(WRITE "project_dir/${CMAKE_INSTALL_MANIFEST}" "")
foreach(file ${CMAKE_INSTALL_MANIFEST_FILES})
  file(APPEND "project_dir/${CMAKE_INSTALL_MANIFEST}" "${file}\n")
endforeach()

所以我猜问题是权限?但是我和sudo一起运行,所以我不明白这是怎么回事。

0 个答案:

没有答案