From 0d3ebd90203be2314e9c9fece66216f36dab3abe Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 24 Jul 2013 14:04:34 -0500 Subject: Do not display screensavers in the configuration dialog that are not installed on the system --- ConfigureChecks.cmake | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ConfigureChecks.cmake') diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 9971e5538..e7e5709ad 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -161,6 +161,10 @@ if( WITH_XSCREENSAVER ) else( ) tde_message_fatal( "xscreensaver is requested, but was not found on your system" ) endif( ) + include( FindXscreensaver.cmake ) # not really good practise + if( NOT XSCREENSAVER_FOUND ) + message( FATAL_ERROR "\nxscreensaver is requested, but was not found on your system" ) + endif( ) endif( ) -- cgit v1.2.3