直接用自己的电脑打开别人的工程,由于目录不同,运行命令cmake . 出错,
The current CMakeCache.txt directory 。。。is different than the directory。。。 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
解决办法:删除CMakeCache.txt文件,重新运行命令cmake .即可编译成功。