Editing versus deleting CMakeCache.txt after moving directory

前端 未结 2 1266
星月不相逢
星月不相逢 2021-01-01 17:24

If CMake is re-executed after the source directory is moved, an error like this is given:

CMake Error: The current CMakeCache.txt directory /new-path/

2条回答
  •  情歌与酒
    2021-01-01 17:56

    I ran into same error while running a CGAL code (which I had already compiled sometime ago) . All I did was create a new directory and copy the ".cpp" file there and run " CGAL_create_CMakelists " and then run cmake command.It worked this way. I don't exactly know but I think the error comes when you run the code which was already compiled and has its build files already in the folder(due to previous compiling).

提交回复
热议问题