2012年10月1日 星期一

[CMake] Re-run cmake with a different source directory.

Problem:
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.


I got above error message when I execute below cmake command to generate solution for webkit.
cmake -G "Visual Studio 9 2008" -DCMAKE_WINCE_SDK="SDK_Name" -DPORT=WinCE -D3RDPARTY_DIR=Path1 Path2


Solve:
Delete CMakeCache.txt in the folder you executing cmake.









沒有留言:

張貼留言