我正在台式机和笔记本电脑之间同步我的代码,但是当我尝试在笔记本电脑中构建程序时收到以下错误消息:
CMake Error: The current CMakeCache.txt directory /home/mylatoppath is different than the directory /home/mydesktoppath where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
CMake Error: The source "/home/...." does not match the source "/home/..." used to generate cache. Re-run cmake with a different source directory.
有什么办法可以解决这个问题吗?请注意,我必须定期同步它们,因为我想同时处理它们