From b588a3b46dc59f8b17f3f791f51fa6371d1d4c36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 13 Feb 2021 01:07:34 +0100 Subject: tdescreensaver: Add an option to force the installation of desktop files for all xscreensavers, regardless of whether the corresponding XML files are currently present during the build. This is useful especially for building binary packages for distributions, so it is OFF by default. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit 7a7a60a910b04e9af84a1e3161d8661499de5384) --- tdescreensaver/kxsconfig/CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tdescreensaver') diff --git a/tdescreensaver/kxsconfig/CMakeLists.txt b/tdescreensaver/kxsconfig/CMakeLists.txt index 442b7b49..05c0d6b5 100644 --- a/tdescreensaver/kxsconfig/CMakeLists.txt +++ b/tdescreensaver/kxsconfig/CMakeLists.txt @@ -57,13 +57,15 @@ foreach(_currentdesktopfile ${_desktopfiles}) find_file(XSCREENSAVER_FILE_FOUND ${_screensaverName}.xml PATHS ${XSCREENSAVER_CONFIG_DIR} ) if(XSCREENSAVER_FILE_FOUND) MESSAGE(STATUS "xscreensaver name ${_screensaverName} found") + else(XSCREENSAVER_FILE_FOUND) + MESSAGE(STATUS "xscreensaver name ${_screensaverName} not found") + endif(XSCREENSAVER_FILE_FOUND) + if( XSCREENSAVER_FILE_FOUND OR WITH_ALL_INCLUDED_XSCREENSAVERS ) tde_create_translated_desktop( SOURCE ${_currentdesktopfile} DESTINATION ${APPS_INSTALL_DIR}/System/ScreenSavers PO_DIR tdescreensaver-desktops ) - else(XSCREENSAVER_FILE_FOUND) - MESSAGE(STATUS "xscreensaver name ${_screensaverName} not found") - endif(XSCREENSAVER_FILE_FOUND) + endif() unset(XSCREENSAVER_FILE_FOUND CACHE) endforeach(_currentdesktopfile ${_desktopfiles}) -- cgit v1.2.1