Alex Rivera | Logout

how to modify the install-path without running the configure script/cmake again

Asked 2012-11-20T19:42:25.147
44

I am working on a project which takes considerable time to build (10-15) minutes. I have recompiled to verify if there is a compilation error. Now I want to change the install directory so that I have a new version of executable with the new changes. Is there a method to just modify the install path so that the 'make install' installs to a new location rather than the old one?

Edit
Report

1 Answer

22

Running CMake with -DCMAKE_INSTALL_PREFIX=<somewhere different to last time> shouldn't cause your project to need recompiled. If you pass other command line parameters to CMake which e.g. alter the compiler flags, that would force a rebuild of affected targets, but simply changing the install prefix won't.

answered 2012-11-21T01:27:06.090

Your Answer