Fix detection of XSS in Xext with CMake build

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 5e5f4837b5)
pull/182/head
Slávek Banko 9 years ago
parent 46b20a5577
commit f3f4cad271

@ -258,8 +258,9 @@ if( WITH_XSCREENSAVER )
if( HAVE_XSSLIB )
pkg_search_module( XSS xscrnsaver )
else( )
check_library_exists( Xext XScreenSaverQueryInfo "" HAVE_XSSLIB )
if( HAVE_XSSLIB )
check_library_exists( Xext XScreenSaverQueryInfo "" HAVE_XEXT_XSS )
if( HAVE_XEXT_XSS )
set( HAVE_XSSLIB 1 )
pkg_search_module( XSS xext )
endif( )
endif( )

Loading…
Cancel
Save