diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b801655d..d93a061ae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1943,6 +1943,8 @@ elseif(WINDOWS) set(SDL_VIDEO_DRIVER_WINDOWS 1) sdl_glob_sources("${SDL3_SOURCE_DIR}/src/video/windows/*.c") + CheckOpenVR() + if(SDL_RENDER_D3D AND HAVE_D3D9_H) set(SDL_VIDEO_RENDER_D3D 1) set(HAVE_RENDER_D3D TRUE) diff --git a/cmake/sdlchecks.cmake b/cmake/sdlchecks.cmake index 4668772f5..4efdf86ab 100644 --- a/cmake/sdlchecks.cmake +++ b/cmake/sdlchecks.cmake @@ -671,7 +671,9 @@ macro(CheckOpenVR) sdl_glob_sources("${SDL3_SOURCE_DIR}/src/video/openvr/*.c") set(SDL_VIDEO_DRIVER_OPENVR 1) - sdl_link_dependency(egl LIBS EGL) + if(NOT WINDOWS) + sdl_link_dependency(egl LIBS EGL) + endif() endif() endmacro()