diff options
author | Jarkko Koivikko <jarkko.koivikko@code-q.fi> | 2022-03-30 11:39:55 +0300 |
---|---|---|
committer | Jarkko Koivikko <jarkko.koivikko@code-q.fi> | 2022-03-31 20:57:12 +0300 |
commit | a8f9d4b6a6c3fa05995d083482a8a6d3f2e05f93 (patch) | |
tree | 1429baf5a63317196962e307dd680b9225460546 /cmake | |
parent | 9c679ed59e2fed82a85d40a8925492c90e43df65 (diff) |
Make 3rdparty/hunspell buildable by simple git checkout
Previously the 3rdparty/hunspell sources had to be copied over to the
src/plugins/hunspell/3rdparty.
This change modifies the build files so that it is possible to do a
simple git checkout of the hunspell sources at the same directory.
Change-Id: I18d4a8f5d3819fdf61f19a1dc84e068fbf6a5600
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/QtVirtualKeyboardSetup.cmake | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmake/QtVirtualKeyboardSetup.cmake b/cmake/QtVirtualKeyboardSetup.cmake index a3c7f986..3d0fe493 100644 --- a/cmake/QtVirtualKeyboardSetup.cmake +++ b/cmake/QtVirtualKeyboardSetup.cmake @@ -63,8 +63,7 @@ function(process_vkb_enable) endfunction() function(check_3rdparty_hunspell) - if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/src/plugins/hunspell/3rdparty/hunspell/src/hunspell/hunspell.h" AND - EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/src/plugins/hunspell/3rdparty/hunspell/data") + if (EXISTS "${CMAKE_CURRENT_LIST_DIR}/../src/plugins/hunspell/3rdparty/hunspell/hunspell/src/hunspell/hunspell.h") set(VKB_HAVE_3RDPARTY_HUNSPELL TRUE CACHE BOOL "Detection of local Hunspell source code" FORCE) else() set(VKB_HAVE_3RDPARTY_HUNSPELL FALSE CACHE BOOL "Detection of local Hunspell source code" FORCE) |