Reputation: 6809
I am new to this stuff and I have been trying to fix another issue:
Two OpenCV's are installed (with different versions) and I can't delete all traces of the past one
and I was suggested to do
cmake -D CMAKE_PREFIX_PATH = usr/local ..
which I did and cmake do not work now. When I try a simple "cmake .." I get
No current working directory
Aborted
How do I fix this? And how do I set cmake_prefix_path?
Upvotes: 5
Views: 4886
Reputation: 66118
CMake 2.8.10 (and older) generates error
No current working directory
if current directory cannot be accessed(usually, deleted). This can be checked with command
cd .
Modern CMake (since 2.8.11) generates another error:
Current working directory cannot be established.
See also this bugreport.
Upvotes: 10