mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-28 22:39:42 +00:00
Fix a qt deprecation warning in cmake
This commit is contained in:
parent
957318d0b9
commit
222365b5e3
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