From 01bcc0b62d26e83e9930cdd9d71c7c0f64ffdaed Mon Sep 17 00:00:00 2001 From: Jaswant Panchumarti <jaswant.panchumarti@kitware.com> Date: Wed, 12 Feb 2025 13:15:40 -0500 Subject: [PATCH] Add TestSDL2 only for emscripten platform - closes vtk/vtk#19612 --- Rendering/OpenGL2/Testing/Cxx/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Rendering/OpenGL2/Testing/Cxx/CMakeLists.txt b/Rendering/OpenGL2/Testing/Cxx/CMakeLists.txt index acdb6cb93da..3081144140e 100644 --- a/Rendering/OpenGL2/Testing/Cxx/CMakeLists.txt +++ b/Rendering/OpenGL2/Testing/Cxx/CMakeLists.txt @@ -112,8 +112,10 @@ endif() set_tests_properties(VTK::RenderingOpenGL2Cxx-TestFramebufferHDR PROPERTIES TIMEOUT ${VTK_TEST_TIMEOUT_TestFramebufferHDR}) -if (VTK_USE_SDL2) - vtk_add_test_cxx(vtkRenderingOpenGL2CxxTests tests TestSDL2.cxx) +if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten") + if (VTK_USE_SDL2) + vtk_add_test_cxx(vtkRenderingOpenGL2CxxTests tests TestSDL2.cxx) + endif () endif () if (NOT VTK_OPENGL_USE_GLES) -- GitLab