diff --git a/modules/world/CMakeLists.txt b/modules/world/CMakeLists.txt index 8c580ed1b2..256d5e3785 100644 --- a/modules/world/CMakeLists.txt +++ b/modules/world/CMakeLists.txt @@ -84,7 +84,7 @@ endif() ocv_target_compile_definitions(${the_module} PRIVATE OPENCV_MODULE_IS_PART_OF_WORLD=1) # NOTE: https://github.com/opencv/opencv/issues/25543 -if (WITH_QT) +if (WITH_QT AND QT_VERSION_MAJOR GREATER 5) qt_disable_unicode_defines(${the_module}) endif()