Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CMake missing modules directory

Tags:

cmake

I've installed CMake 2.8.11.2 package from CMake's website for Mac 64-bit. We recently upgraded a project from Qt 4 to Qt 5 and the CMake upgrade is mandatory for CMake to use Qt 5. However, when I type cmake . I get the following error:

CMake Error: Could not find CMAKE_ROOT !!! CMake has most likely not been installed correctly. Modules directory not found in /Applications/CMake 2.8-11.app/Contents/bin CMake Error: Error executing cmake::LoadCache(). Aborting. 

I can confirm, there is no modules directory in the bin folder. I really don't know how to resolve this error, or how to get the modules needed.

like image 369
roundtheworld Avatar asked Sep 04 '13 13:09

roundtheworld


1 Answers

Do hash -r to clear the cache, then do cmake --version.

It should work.

like image 187
Samir Ouldsaadi Avatar answered Oct 06 '22 20:10

Samir Ouldsaadi