mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +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
@ -149,7 +149,11 @@ if(WIN32)
|
|||||||
set(QT_USE_QTMAIN TRUE)
|
set(QT_USE_QTMAIN TRUE)
|
||||||
endif(WIN32)
|
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})
|
qt_add_resources(OPENCS_RES_SRC ${OPENCS_RES})
|
||||||
|
|
||||||
# for compiled .ui files
|
# for compiled .ui files
|
||||||
|
Loading…
x
Reference in New Issue
Block a user