From: Adriaan de Groot Date: Sat, 29 Apr 2017 15:04:57 +0000 (+0200) Subject: Only install the application icon if the client is being built X-Git-Tag: 0.12.5~24 X-Git-Url: https://git.quassel-irc.org/?a=commitdiff_plain;h=710bb9ff80557a98b2b27a5a37d8bc4358039b03;p=quassel.git Only install the application icon if the client is being built The icon should not be installed as part of a core-only build. Closes GH-292. (cherry picked from commit f0efd6b5fa2839c9290a36c5a0397f439166f532) --- diff --git a/icons/CMakeLists.txt b/icons/CMakeLists.txt index 1a253537..0cb2fe12 100644 --- a/icons/CMakeLists.txt +++ b/icons/CMakeLists.txt @@ -30,13 +30,12 @@ if (WANT_MONO OR WANT_QTCLIENT) endif() set(CLIENT_RCS ${CLIENT_RCS} ${ICON_RCS} PARENT_SCOPE) -endif() - -# Application icon -if (HAVE_KDE OR (UNIX AND NOT APPLE)) - install(FILES hicolor/48x48/apps/quassel.png DESTINATION ${CMAKE_INSTALL_ICONDIR}/hicolor/48x48/apps) - if (CMAKE_INSTALL_PREFIX STREQUAL "/usr") - install(FILES hicolor/48x48/apps/quassel.png DESTINATION /usr/share/pixmaps) + # Application icon + if (HAVE_KDE OR (UNIX AND NOT APPLE)) + install(FILES hicolor/48x48/apps/quassel.png DESTINATION ${CMAKE_INSTALL_ICONDIR}/hicolor/48x48/apps) + if (CMAKE_INSTALL_PREFIX STREQUAL "/usr") + install(FILES hicolor/48x48/apps/quassel.png DESTINATION /usr/share/pixmaps) + endif() endif() endif()