If you scroll down to Special Cases, you can see that it describes what you want. I may have an error on how it's evaluating the path, I'll look into that.

I see that the command you used produced this: -DCMAKE_INSTALL_PREFIX=/usr which is a special case and should do what you describe by changing ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_SYSCONFDIR} to ${CMAKE_INSTALL_FULL_SYSCONFDIR}/.

I don't follow. In my build -DCMAKE_INSTALL_SYSCONFDIR=/etc is set already

Quick, question though. Is there a case where you will want to install in a specific folder and then install the cfg somewhere else? (Apart from the special case described in the link.)

in my case DESTDIR is debian/<pkg_name> where all the files should be installed and later packaged.

I don't think we should configure or define CFG_DIR; it should be evaluated from the install prefix according to the rules described above.

Uhm... CFG_DIR is something we use in code and it should be configurable.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <kamailio/kamailio/issues/4053/2531868787@github.com>