summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authoraneejit1 <aneejit1@gmail.com>2020-07-07 23:48:23 +0000
committeraneejit1 <aneejit1@gmail.com>2020-07-27 19:23:55 +0000
commitae1e54e0d428456fab3fc50d328835d7ed7d6adc (patch)
tree55a2a8e625b3434c36b93cc5f3e8d72300da3e43 /ConfigureChecks.cmake
parent24a8daa732cca8b4cfbc882334c61ff42bd52689 (diff)
downloadtdebase-ae1e54e0d428456fab3fc50d328835d7ed7d6adc.tar.gz
tdebase-ae1e54e0d428456fab3fc50d328835d7ed7d6adc.zip
Set required includes before checking for scrnsaver.h
Signed-off-by: aneejit1 <aneejit1@gmail.com>
Diffstat (limited to 'ConfigureChecks.cmake')
-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( )