[Piglit] [PATCH] use X11_X11_LIB_FOUND instead of CMAKE_SYSTEM_NAME

groleo at gmail.com groleo at gmail.com
Thu Oct 18 10:58:11 PDT 2012


From: Adrian Marius Negreanu <adrian.m.negreanu at intel.com>

don't add X11_X11_LIB on systems that
qualifies as Linux, but is missing the libX11.

Signed-off-by: Adrian Marius Negreanu <adrian.m.negreanu at intel.com>
---
 tests/util/CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/util/CMakeLists.txt b/tests/util/CMakeLists.txt
index bb29c62..371aacd 100644
--- a/tests/util/CMakeLists.txt
+++ b/tests/util/CMakeLists.txt
@@ -50,12 +50,12 @@ set(UTIL_GL_LIBS
         ${WAFFLE_LDFLAGS}
 	)
 
-if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
+if(X11_X11_LIB_FOUND)
 	set(UTIL_GL_LIBS
 		${UTIL_GL_LIBS}
 		${X11_X11_LIB}
 	)
-endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
+endif(X11_X11_LIB_FOUND)
 
 if(OPENGL_egl_LIBRARY)
 	set(UTIL_GL_SOURCES
-- 
1.7.11.3



More information about the Piglit mailing list