Browse Source

Set required includes before checking for scrnsaver.h

Signed-off-by: aneejit1 <aneejit1@gmail.com>
(cherry picked from commit ae1e54e0d4)
pull/182/head
aneejit1 2 years ago committed by Slávek Banko
parent
commit
9e83e1208a
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668
  1. 2
      ConfigureChecks.cmake

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

Loading…
Cancel
Save