Fix qmimeprovider_database.cpp generation for Win32 with CMake

Incorrect arguments were being passed to the command which generates the
above file.

Change-Id: I9f06aca30e747e4368c8f6a727a02cb93b936167
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Leander Beernaert 2020-02-19 14:45:05 +01:00
parent 3703a28511
commit baea8bf7d5

View File

@ -1183,7 +1183,7 @@ if(QT_FEATURE_mimetype AND QT_FEATURE_mimetype_database)
set(mime_dir "${CMAKE_CURRENT_SOURCE_DIR}/mimetypes/mime")
set(command_depends "${mime_dir}/generate.pl" "${corelib_mimetypes_resource_file}")
if (MSVC)
list(APPEND command_args "${mime_dir}/generate.bat" "${mime_dir}/hexdump.ps1" )
list(APPEND command_args "${mime_dir}/generate.bat")
list(APPEND command_depends "${mime_dir}/generate.bat" "${mime_dir}/hexdump.ps1" )
else()
list(APPEND command_args perl "${mime_dir}/generate.pl" )