CMake Error: The source "Path1/CMakeLists.txt" does not match the source "Path2/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory.

出現上述的錯誤,因為我把之前做過cmake的資料夾搬到另一台機器上,想要重做cmake讓路徑重抓

解決方法

把CMakeCache.txt刪掉就可以執行了

arrow
arrow
    文章標籤
    cmake change dir rebuild
    全站熱搜

    痞客興 發表在 痞客邦 留言(0) 人氣()