summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ConfigureChecks.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index dc07f39fc..fb3f4c3f2 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -283,7 +283,9 @@ if( WITH_XSCREENSAVER )
endif( )
endif( )
+ tde_save_and_set( CMAKE_REQUIRED_INCLUDES "${XSS_INCLUDE_DIRS}" )
check_include_file( X11/extensions/scrnsaver.h HAVE_XSCREENSAVER_H )
+ tde_restore( CMAKE_REQUIRED_INCLUDES )
if( HAVE_XSSLIB AND HAVE_XSCREENSAVER_H )
set( HAVE_XSCREENSAVER 1 )
else( )