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

前端 未结 5 2026
情歌与酒
情歌与酒 2021-01-30 16:55

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 d

5条回答
  •  感动是毒
    2021-01-30 17:41

    Running CMake with -DCMAKE_INSTALL_PREFIX= 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.

提交回复
热议问题