CMake Error: The current CMakeCache.txt directory xxx/CMakeCache.txt
is different than the directory
xxx 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
“xxx/CMakeLists.txt”
does not match the source
“xxx/CMakeLists.txt”
used to generate cache. Re-run cmake with a different source
directory.
是你拷贝了工程文件,但是build中的cache文件还保留了之前的信息,删掉build文件夹后重新编译即可。