From 4af47af27e6ddc2a69e6ff54e28b9a4e6981f80d Mon Sep 17 00:00:00 2001 From: David Heidelberg Date: Sun, 31 Mar 2024 20:08:42 +0200 Subject: [PATCH] cmake: depend on WGL_TESTS being enabled to build WGL Signed-off-by: David Heidelberg Part-of: --- CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 628a27d25..2814ab486 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -210,17 +210,17 @@ if(PIGLIT_USE_X11 AND OPENGL_gl_LIBRARY AND PIGLIT_BUILD_GLX_TESTS) add_definitions(-DPIGLIT_HAS_GLX) endif() +if(PIGLIT_BUILD_WGL_TESTS AND PIGLIT_USE_WAFFLE) + set(PIGLIT_HAS_WGL True) + add_definitions(-DPIGLIT_HAS_WGL) +endif() + IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") pkg_check_modules(LIBDRM QUIET libdrm) pkg_check_modules(XCB QUIET xcb) pkg_check_modules(XCB_DRI2 QUIET xcb-dri2) pkg_check_modules(GLPROTO QUIET glproto) pkg_check_modules(LIBVULKAN QUIET vulkan) -ELSEIF(${CMAKE_SYSTEM_NAME} MATCHES "Windows") - if (PIGLIT_USE_WAFFLE) - set(PIGLIT_HAS_WGL True) - add_definitions(-DPIGLIT_HAS_WGL) - endif() ENDIF() if(PIGLIT_BUILD_VK_TESTS) -- 2.11.4.GIT