void-packages/srcpkgs/kcoreaddons/patches/desktoptojson-usage-crossbu...

17 lines
651 B
Diff
Raw Normal View History

2017-05-13 18:55:22 +02:00
fix cmake code for cross-build usage.
Initial directive "command KF5::desktoptojson ..." points
the target's arch desktoptojson binary instead of the host's one.
--- KF5CoreAddonsMacros.cmake.ORIG
+++ KF5CoreAddonsMacros.cmake
@@ -45,7 +45,8 @@
_desktop_to_json_cmake28(${desktop} ${json} ${DESKTOP_TO_JSON_COMPAT_MODE})
return()
endif()
- set(command KF5::desktoptojson -i ${desktop} -o ${json})
+ get_target_property(DESKTOPTOJSON_LOCATION KF5::desktoptojson LOCATION)
+ set(command ${DESKTOPTOJSON_LOCATION} -i ${desktop} -o ${json})
if(DESKTOP_TO_JSON_COMPAT_MODE)
list(APPEND command -c)
endif()