mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-17 11:43:25 +00:00
Fix a qt deprecation warning in cmake
This commit is contained in:
parent
957318d0b9
commit
222365b5e3
@ -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…
x
Reference in New Issue
Block a user