https://bugs.kde.org/show_bug.cgi?id=382459

--- Comment #4 from Ralf Habacker <ralf.habac...@freenet.de> ---
(In reply to Ralf Habacker from comment #3)
> https://cgit.kde.org/extra-cmake-modules.git/tree/kde-modules/KDEInstallDirs.
> cmake#n440 there is used

_define_non_cache(LIBEXECDIR_KF5 "${CMAKE_INSTALL_LIBEXECDIR}/kf5")

which is defined at
https://cgit.kde.org/extra-cmake-modules.git/tree/kde-modules/KDEInstallDirs.cmake#n387
which indicates that for kf5 libexec also KDE_INSTALL_FULL_LIBEXECDIR_KF5 could
be used on non windows. On windows this variable could not be used because it
would have a non empty prefix; instead an empty string or
KDE_INSTALL_LIBEXECDIR_KF5 (which should also be empty) should work

The conclusion is that in the services something like the following should be
used

Exec=@NEW_VARIABLE_FOR CROSS_PLATTFORM_LIBEXEC_PATH@kiod5

and in the top level CMakeLists.txt something like 

if(WIN32)
    set(NEW_VARIABLE_FOR CROSS_PLATTFORM_LIBEXEC_KF5_PATH )
else()
    set(NEW_VARIABLE_FOR CROSS_PLATTFORM_LIBEXEC__KF5_PATH
${KDE_INSTALL_FULL_LIBEXECDIR_KF5})
endif()

or

if(WIN32)
    set(NEW_VARIABLE_FOR CROSS_PLATTFORM_LIBEXEC_KF5_PATH
${KDE_INSTALL_LIBEXECDIR_KF5})
else()
    set(NEW_VARIABLE_FOR CROSS_PLATTFORM_LIBEXEC__KF5_PATH
${KDE_INSTALL_FULL_LIBEXECDIR_KF5})
endif()




Exec=@SOME_PREFIX@kiod5

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to