Unverified Commit 2128e577 authored by Andre Heinecke's avatar Andre Heinecke
Browse files

Do not update mimetypes when crosscompiling

When crosscompiling update_xdg_mimetypes would create
empty mime data for the target system.
parent c63b9664
......@@ -9,6 +9,6 @@ set_package_properties(SharedMimeInfo PROPERTIES
)
# update XDG mime-types if shared mime info is around
if(SharedMimeInfo_FOUND)
if(SharedMimeInfo_FOUND AND NOT CMAKE_CROSSCOMPILING)
update_xdg_mimetypes(${XDG_MIME_INSTALL_DIR})
endif()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment