1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-18 13:12:50 +00:00

Merge branch 'deprecated_qt' into 'master'

Fix a qt deprecation warning in cmake

See merge request OpenMW/openmw!2974
This commit is contained in:
psi29a 2023-04-25 21:59:16 +00:00
commit 0b976232e9

View File

@ -149,7 +149,11 @@ if(WIN32)
set(QT_USE_QTMAIN TRUE)
endif(WIN32)
qt_wrap_ui(OPENCS_UI_HDR ${OPENCS_UI})
if (QT_VERSION_MAJOR VERSION_EQUAL 5)
qt5_wrap_ui(OPENCS_UI_HDR ${OPENCS_UI})
else ()
qt6_wrap_ui(OPENCS_UI_HDR ${OPENCS_UI})
endif()
qt_add_resources(OPENCS_RES_SRC ${OPENCS_RES})
# for compiled .ui files