experiment with cmake not trying to find directx
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good

This commit is contained in:
IoI_xD 2026-09-19 01:58:40 +09:00
commit ffa58c38a3

View file

@ -98,15 +98,8 @@ if(MW_TRY_VULKAN)
endif() endif()
if(MW_TRY_DIRECT3D9) if(MW_TRY_DIRECT3D9)
include(${CMAKE_CURRENT_SOURCE_DIR}/resource/FindDirectX.cmake)
if(DIRECTX_FOUND)
if(MW_TRY_DIRECT3D9)
set(MW_BUILD_DIRECT3D9 ON) set(MW_BUILD_DIRECT3D9 ON)
message(STATUS "Direct3D9 widget has been enabled") message(STATUS "Direct3D9 widget has been enabled")
endif()
else()
message(STATUS "DirectX widgets have been disabled (DirectX not found)")
endif()
endif() endif()
if(MW_BUILD_STATIC) if(MW_BUILD_STATIC)