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

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

    The canonical definition of DESTDIR and prefix is: the files are installed to $DESTDIR$prefix, but prepared as if their final install location was just $prefix.

    So DESTDIR is only for people building packages or tarballs of binaries; CMAKE_INSTALL_PREFIX is for anyone who wants to specify where the built binaries should live in the end.

提交回复
热议问题