Pass flags with dash to rc.exe when auto-generating win32 rc files

Fixes clang-cl build:
  clang-cl: error: no such file or directory: '/c65001'

Pick-to: 6.5 6.4
Change-Id: I9f134f866f17d1eeb12a28b72580151c409a98f6
Reviewed-by: Yuhang Zhao <yuhangzhao@deepin.org>
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
bb10
Peter Varga 2022-12-13 17:37:02 +01:00
parent d4121dd876
commit 67fc186f9c
1 changed files with 1 additions and 1 deletions

View File

@ -1206,7 +1206,7 @@ function(_qt_internal_generate_win32_rc_file target)
endif()
if(MSVC)
set(extra_rc_flags "/c65001 /DWIN32 /nologo")
set(extra_rc_flags "-c65001 -DWIN32 -nologo")
else()
set(extra_rc_flags)
endif()