How can I replace './configure –prefix=/usr/ or ./autogen –prefix=/usr/' while using cmake?

Hi all.

I was just wondering how can I replace

./configure --prefix=/usr/

or

./autogen.sh --prefix=/usr/

while using cmake and I have found the answer.

It’s quite simple but worth remembering so I have decided to post it here.

cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr/ ../

Of course prefix /usr/ can be changed to whatever you want it to be…

Regards.

Andy

AndrzejL

"Never meet Your heroes. Most of the time you'll only end up disappointed." White Polak Male Husband Employee Hetero Carnivorous Fugly Geek @$$hole with ADD Catholic “Some men just want to watch the world burn.”

Comments are closed.