What is CMake equivalent of ‘configure –prefix=DIR && make all install ‘?

I do cmake . && make all install. This works, but installs to /usr/local.

I need to install to a different prefix (for example, to /usr).

What is the cmake and make command line to install to /usr instead of /usr/local?

8 Answers
8

Leave a Comment