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

前端 未结 5 2022
情歌与酒
情歌与酒 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:31

    CMake generated makefiles support the DESTDIR coding convention for makefiles. Thus you can override the default installation location by setting the DESTDIR variable upon invoking make:

    $ make install DESTDIR=/opt/local
    

    There is no need to re-run CMake.

提交回复
热议问题