summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2023-10-23 04:02:28 +0200
committerSlávek Banko <slavek.banko@axis.cz>2023-10-23 04:02:28 +0200
commit3de53226da36ff255ac18118b0f54d608fabc16c (patch)
treecad101b151ef479155d676fcb842376f8cfe2e19
parentb6c5fd7f2cc1b54794896fb5445cbad795424d63 (diff)
downloadlibksquirrel-3de53226da36ff255ac18118b0f54d608fabc16c.tar.gz
libksquirrel-3de53226da36ff255ac18118b0f54d608fabc16c.zip
cmake: Fix X11/XWDFile.h header detection.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--ConfigureChecks.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 2206bc9..5914777 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -356,8 +356,8 @@ endif( )
##### checks for xwd codec #####
if( BUILD_XWD )
- find_file( HAVE_XWDFILE_H "XWDFile.h" )
+ find_file( HAVE_XWDFILE_H "XWDFile.h" PATH_SUFFIXES "X11" )
if( NOT HAVE_XWDFILE_H )
- tde_message_fatal( "xwd codec was requested but xwdfile.h not found on your system" )
+ tde_message_fatal( "xwd codec was requested but X11/XWDFile.h not found on your system" )
endif( )
endif( )