Browse Source

Set required includes before checking for scrnsaver.h

Signed-off-by: aneejit1 <aneejit1@gmail.com>
pull/158/head
aneejit1 4 months ago
parent
commit
ae1e54e0d4
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      ConfigureChecks.cmake

+ 2
- 0
ConfigureChecks.cmake View File

@@ -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( )


Loading…
Cancel
Save