diff options
author | Antenore Gatta <antenore@simbiosi.org> | 2019-07-31 02:56:49 +0300 |
---|---|---|
committer | Antenore Gatta <antenore@simbiosi.org> | 2019-07-31 02:56:49 +0300 |
commit | 06e9f4bb7fdb3b4dbb76066899fd9d286ff27b9b (patch) | |
tree | b90c8d1bb16eea615d332d0ab532442e85f8f226 /CMakeLists.txt | |
parent | ea7a5cda8baf497ed7a1fdcf6abe5a490d572a32 (diff) |
Make icon cache optional. Partly solve #1045
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1b2287e33..6994832a6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -354,6 +354,14 @@ if(AVAHI_FOUND) add_definitions(-DHAVE_LIBAVAHI_CLIENT) endif() +option(WITH_ICON_CACHE "Generate the icon cache during install target" ON) +if(WITH_ICON_CACHE) + message(STATUS "Icon cache will be generated") + add_definitions(-DWITH_ICON_CACHE) +else() + message(STATUS "Icons cache won't be generated automatically") +endif() + if(GTK_FOUND) pkg_check_modules(gio REQUIRED gio-2.0) pkg_check_modules(gio-unix REQUIRED gio-unix-2.0) |