As stated in CMake's doc, INSTALL_FILES command is deprecated in
favour of INSTALL( FILES ... DESTINATION ...) command.
So the following code
INSTALL_FILES( ${DATA_INSTALL_DIR}/some_dir files_to_install )
should be replaced with
INSTALL( FILES files_to_install DESTINATION ${DATA_INSTALL_DIR}/some_dir )
Well, we have a problem here:
${DATA_INSTALL_DIR} contains "/share/apps".
It is fine as long as INSTALL_FILES is used, but INSTALL works
correctly only if its DESTINATION argument _doesn't_ begin with "/"
(i.e. it must be share/apps), or it will try to install to root
directory "/share/apps".
I.e., if INSTALL command sees a "/" in dest-path, it won't prepend
${CMAKE_INSTALL_PREFIX} to it.
The question is:
Is it planned to replace deprecated INSTALL_FILES with INSTALL in
CMakeLists.txt?
If yes, then ${DATA_INSTALL_DIR} needs to be modified to not include
the leading "/".
Rather global change :).
Thoughts?
Dmitry.
_______________________________________________ Kde-buildsystem mailing list [email protected] https://mail.kde.org/mailman/listinfo/kde-buildsystem
