cmake: allow WINDEPLOYQT to check if it's necessary to copy any Qt dll

In theory it shouldn't copy any qt dll on static build

If this dont work I will change to `AND NOT YUZU_STATIC_BUILD` as you can't evaluate with "NOT" on `cmake_dependent_option`
This commit is contained in:
DraVee 2026-02-14 21:35:57 +01:00
parent 19e2dba35a
commit 7ad1c8c63f
1 changed files with 1 additions and 1 deletions

View File

@ -428,7 +428,7 @@ if(UNIX AND NOT APPLE)
install(TARGETS yuzu)
endif()
if (WIN32 AND NOT YUZU_USE_BUNDLED_QT AND QT_VERSION VERSION_GREATER_EQUAL 6)
if (WIN32 AND QT_VERSION VERSION_GREATER_EQUAL 6)
set(YUZU_EXE_DIR "$<TARGET_FILE_DIR:yuzu>")
add_custom_command(TARGET yuzu POST_BUILD COMMAND ${WINDEPLOYQT_EXECUTABLE} "${YUZU_EXE_DIR}/eden.exe" --dir "${YUZU_EXE_DIR}" --libdir "${YUZU_EXE_DIR}" --plugindir "${YUZU_EXE_DIR}/plugins" --no-compiler-runtime --no-opengl-sw --no-system-d3d-compiler --no-translations --verbose 0)
endif()