Set required includes before checking for scrnsaver.h

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

@ -283,7 +283,9 @@ if( WITH_XSCREENSAVER )
endif( ) endif( )
endif( ) endif( )
tde_save_and_set( CMAKE_REQUIRED_INCLUDES "${XSS_INCLUDE_DIRS}" )
check_include_file( X11/extensions/scrnsaver.h HAVE_XSCREENSAVER_H ) check_include_file( X11/extensions/scrnsaver.h HAVE_XSCREENSAVER_H )
tde_restore( CMAKE_REQUIRED_INCLUDES )
if( HAVE_XSSLIB AND HAVE_XSCREENSAVER_H ) if( HAVE_XSSLIB AND HAVE_XSCREENSAVER_H )
set( HAVE_XSCREENSAVER 1 ) set( HAVE_XSCREENSAVER 1 )
else( ) else( )

Loading…
Cancel
Save