From 060b55c93ef2338998bf8bcc542421d9f5fd99fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20Komar=C4=8Devi=C4=87?= <4973094+kmilos@users.noreply.github.com> Date: Wed, 15 Nov 2023 15:51:34 +0100 Subject: [PATCH] CMake: install thumbnailer only when binary is built --- gnome/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnome/CMakeLists.txt b/gnome/CMakeLists.txt index fc38555df5..538c6f2ee7 100644 --- a/gnome/CMakeLists.txt +++ b/gnome/CMakeLists.txt @@ -1 +1,3 @@ -install(FILES heif.thumbnailer DESTINATION ${CMAKE_INSTALL_DATADIR}/thumbnailers) +if(WITH_EXAMPLES AND TARGET PNG::PNG) + install(FILES heif.thumbnailer DESTINATION ${CMAKE_INSTALL_DATADIR}/thumbnailers) +endif()