I was just wondering how can I replace
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…