mirror of
https://github.com/OpenMW/openmw.git
synced 2025-07-10 08:11:35 +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:
commit
0b976232e9
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue