CMake throws Error: could not load cache

I guess you didn’t configure your project.

  1. You first need to run cmake . at the project root to generate build files. You can also run it from an empty directory to separate source and build files.

  2. Then you can use cmake --build ./ in the build dir.

Or, if you prefer code-only:

cd [root-directory-of-your-project]
cmake .
cmake --build ./

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)