From: <el...@us...> - 2011-08-27 20:00:01
|
Revision: 14993 http://alleg.svn.sourceforge.net/alleg/?rev=14993&view=rev Author: elias Date: 2011-08-27 19:59:54 +0000 (Sat, 27 Aug 2011) Log Message: ----------- Work around this cmake bug: http://www.cmake.org/Bug/view.php?id=11753 Basically, check_include_files unconditionally fails right now, which caused for example XRandR never being used for me. Using check_include_file instead, strangely, works. Modified Paths: -------------- allegro/branches/5.1/CMakeLists.txt Modified: allegro/branches/5.1/CMakeLists.txt =================================================================== --- allegro/branches/5.1/CMakeLists.txt 2011-08-27 00:21:18 UTC (rev 14992) +++ allegro/branches/5.1/CMakeLists.txt 2011-08-27 19:59:54 UTC (rev 14993) @@ -1,4 +1,5 @@ # +# # TODO: # # - some documentation targets still missing @@ -585,7 +586,7 @@ endif(CAN_XCURSOR) if(WANT_X11_XF86VIDMODE) - check_include_files("X11/extensions/xf86vmode.h" HAVE_XF86VIFMODE_H) + check_include_file("X11/extensions/xf86vmode.h" HAVE_XF86VIFMODE_H) check_library_exists(Xxf86vm XF86VidModeQueryExtension "" CAN_XF86VIDMODE) if(CAN_XF86VIDMODE AND HAVE_XF86VIFMODE_H) set(ALLEGRO_XWINDOWS_WITH_XF86VIDMODE 1) @@ -594,7 +595,7 @@ endif(WANT_X11_XF86VIDMODE) if(WANT_X11_XINERAMA) - check_include_files("X11/extensions/Xinerama.h" HAVE_XINERAMA_H) + check_include_file("X11/extensions/Xinerama.h" HAVE_XINERAMA_H) check_library_exists(Xinerama XineramaQueryExtension "" CAN_XINERAMA) if(CAN_XINERAMA AND HAVE_XINERAMA_H) set(ALLEGRO_XWINDOWS_WITH_XINERAMA 1) @@ -603,7 +604,7 @@ endif(WANT_X11_XINERAMA) if(WANT_X11_XRANDR) - check_include_files("X11/extensions/Xrandr.h" HAVE_XRANDR_H) + check_include_file("X11/extensions/Xrandr.h" HAVE_XRANDR_H) check_library_exists(Xrandr XRRQueryExtension "" CAN_XRANDR) if(CAN_XRANDR AND HAVE_XRANDR_H) set(ALLEGRO_XWINDOWS_WITH_XRANDR 1) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |