diff options
| author | Anu Aliyas <anu.aliyas@qt.io> | 2024-03-05 17:13:49 +0100 |
|---|---|---|
| committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2024-03-08 01:19:27 +0000 |
| commit | b0173f804599735ddae8c8ac699bd6e1ebd5893d (patch) | |
| tree | f2e9658c252b2ed5ca4e26ee5a3303b9fb1fd4bb | |
| parent | 9ec316d79aac27af073bfa31c950012604bdbf9f (diff) | |
Correct the dictionary path for spell checking on macOS
The Spellchecker built using QtCreator didn't work because it didn't
copy dictionary files to the application bundle's resource folder.
To address this, used 'APPLE' instead of 'MACOS' as the value, since
'MACOS' was false when compiling in QtCreator
Fixes: QTBUG-122997
Change-Id: I86a45b3c3622239873a7745e7b1fed5efbf696d8
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
(cherry picked from commit 2a85e96a685b36501dee35e8d70522be239d006d)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit e1430db3a32c30b3f6c03f26f34b4d86bbbc48b5)
| -rw-r--r-- | src/core/api/Qt6WebEngineCoreMacros.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/api/Qt6WebEngineCoreMacros.cmake b/src/core/api/Qt6WebEngineCoreMacros.cmake index 6c335aad1..8bb731548 100644 --- a/src/core/api/Qt6WebEngineCoreMacros.cmake +++ b/src/core/api/Qt6WebEngineCoreMacros.cmake @@ -29,7 +29,7 @@ function(qt6_add_webengine_dictionary) set(copyCommand COMMAND ${CMAKE_COMMAND} -E copy_directory ${ARGS_OUTPUT_DIRECTORY}/dict ${ARGS_OUTPUT_DIRECTORY}/$<CONFIG> ) - elseif((MACOS OR IOS) AND isBundle) + elseif(APPLE AND isBundle) get_target_property(outputName ${ARGS_TARGET} OUTPUT_NAME) if(NOT outputName) set(outputName ${ARGS_TARGET}) |
