diff options
author | aneejit1 <[email protected]> | 2020-07-07 23:48:23 +0000 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-07-29 17:18:20 +0200 |
commit | 9e83e1208a9693616e636266c7a35546cd15830e (patch) | |
tree | 318a1c8458015b84a46c606ce7a131f8e37e1870 | |
parent | 70da812fd2e79933de4f3863aa866ff25a7c9c6e (diff) | |
download | tdebase-9e83e1208a9693616e636266c7a35546cd15830e.tar.gz tdebase-9e83e1208a9693616e636266c7a35546cd15830e.zip |
Set required includes before checking for scrnsaver.h
Signed-off-by: aneejit1 <[email protected]>
(cherry picked from commit ae1e54e0d428456fab3fc50d328835d7ed7d6adc)
-rw-r--r-- | ConfigureChecks.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index f56f00514..88f11868d 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( ) |