Problems using cmake for make install

I repeatedly get this error when I use make install or sudo make install :

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

If I look at the cmake_install.cmake file, the violation lines are always here:

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

So, I think the problem is the resolution? But I work with sudo, so I do not understand how this can be a problem.

+5
source share

Source: https://habr.com/ru/post/1207053/


All Articles