From c6a4d8aa8e68e361e39ebef96eb5566fdf014131 Mon Sep 17 00:00:00 2001 From: Emmanuel Vadot Date: Thu, 10 Sep 2020 08:53:13 +0200 Subject: [PATCH] FreeBSD: Look for X11 and GLX libs by default Signed-off-by: Emmanuel Vadot --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f68b787ad..f77b8f32a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -130,7 +130,7 @@ if(PIGLIT_BUILD_CL_TESTS) find_package(OpenCL 1.2 REQUIRED) endif(PIGLIT_BUILD_CL_TESTS) -IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") +IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux|FreeBSD") if(X11_FOUND AND OPENGL_gl_LIBRARY) # Assume the system has GLX. In the future, systems may exist # with libGL and libX11 but no GLX, but that world hasn't -- GitLab