Re: [waffle] [PATCH] cmake: use the EGL CFLAGS in the waffle CFLAGS

2016-04-06 Thread Chad Versace
On 02/11/2016 03:21 PM, Mircea Gherzan wrote:
> Without them, the build will fail with a recent Mesa from the master
> branch on a system without the X headers:
> 
> include/EGL/eglplatform.h:119:22: fatal error: X11/Xlib.h: No such file
> or directory
> 
> Signed-off-by: Mircea Gherzan 

Yes, because egl_CFLAGS_OTHER contains -DMESA_EGL_NO_X11_HEADERS
when the system has no X headers.

Thanks. Patch is pushed to master.
___
waffle mailing list
waffle@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/waffle


[waffle] [PATCH] cmake: use the EGL CFLAGS in the waffle CFLAGS

2016-02-11 Thread Mircea Gherzan
Without them, the build will fail with a recent Mesa from the master
branch on a system without the X headers:

include/EGL/eglplatform.h:119:22: fatal error: X11/Xlib.h: No such file
or directory

Signed-off-by: Mircea Gherzan 
---
 cmake/Modules/WaffleDefineCompilerFlags.cmake | 4 
 1 file changed, 4 insertions(+)

diff --git a/cmake/Modules/WaffleDefineCompilerFlags.cmake 
b/cmake/Modules/WaffleDefineCompilerFlags.cmake
index 679d09c..69d9ff7 100644
--- a/cmake/Modules/WaffleDefineCompilerFlags.cmake
+++ b/cmake/Modules/WaffleDefineCompilerFlags.cmake
@@ -59,6 +59,10 @@ if (NOT MSVC)
 waffle_add_c_flag("-Werror=missing-prototypes" 
WERROR_MISSING_PROTOTYPES)
 endif()
 
+if(egl_FOUND)
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${egl_CFLAGS_OTHER}")
+endif(egl_FOUND)
+
 if(MINGW)
 # Avoid depending on MinGW runtime DLLs
 check_c_compiler_flag(-static-libgcc HAVE_STATIC_LIBGCC_FLAG)
-- 
2.5.0

___
waffle mailing list
waffle@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/waffle