Ask Your Question

poly's profile - activity

2014-11-27 22:32:44 -0500 answered a question Error using CMake for 3.0alpha VS2012

I had the same issue and found that it happens when it fails to execute python.

In FindPythonInterp module of cmake, it tries to get the version number by running python command, and if it fails, it is considered as python 1.4. https://github.com/Kitware/CMake/blob/master/Modules/FindPythonInterp.cmake#L149

So I recommend you to execute python command and check if there is an error or not. In my case (Linux env), I got "python: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory" error, and solved it by adding /usr/local/lib to LD_LIBRARY_PATH.