diff options
author | David Heidelberg <david.heidelberg@collabora.com> | 2024-03-31 21:42:39 +0200 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2024-04-12 12:05:54 +0000 |
commit | 938a9dc9fb82641c2bacd884f96f79d1e3cf9b7d (patch) | |
tree | 04d080dda0be9c4e00f4488877ff1f9516f9a000 | |
parent | 7e5ca052dec1917349eeff6815b09cac294ce026 (diff) |
cmake: remove this 12 years old workaround taking too many lines
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/898>
-rw-r--r-- | CMakeLists.txt | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 922e08b3f..131cfe83e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -153,20 +153,6 @@ if(PIGLIT_USE_WAFFLE) add_definitions(-DWAFFLE_API_VERSION=0x0103) else() find_package(GLUT REQUIRED) - - # The 'REQUIRED' above correctly produces an error for - # OpenGL, but there's a bug involving FindGLUT.cmake - # that fails to produce the error as of CMake 2.8.5. - # - # Instead, CMake keeps going and eventually spams - # the console with a message for every target that used - # e.g. the ${GLUT_INCLUDE_DIR} variable. So it - # prints a line for basically every single test in piglit. - # - # Work around the bug and error out quickly here instead. - if (NOT GLUT_FOUND) - message(FATAL_ERROR "GLUT library not found") - endif() endif(PIGLIT_USE_WAFFLE) if(PIGLIT_BUILD_GLES1_TESTS AND (NOT PIGLIT_USE_WAFFLE OR NOT PIGLIT_BUILD_EGL_TESTS)) |