diff options
author | Konstantin Tokarev <annulen@yandex.ru> | 2020-09-12 06:16:55 +0300 |
---|---|---|
committer | Konstantin Tokarev <annulen@yandex.ru> | 2020-09-12 16:39:45 +0300 |
commit | 412e257d01c56fd1a6326ccc5a401c316276ffb8 (patch) | |
tree | 343ecf79810b4934c12d4c8281c6e5df495bade1 | |
parent | e16357a52fece93e48d5657cfa8b137e8932c0bb (diff) |
Workaround for Windows Store python3.exe
CMake detects it as a preferred Python interpreter, however it doesn't work
without manual interaction from user.
Change-Id: I37ce1015076360ce92121c522734c04401d2fbd6
Reviewed-by: Konstantin Tokarev <annulen@yandex.ru>
-rw-r--r-- | Source/cmake/WebKitCommon.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmake/WebKitCommon.cmake b/Source/cmake/WebKitCommon.cmake index e8a972283..4e57e1d51 100644 --- a/Source/cmake/WebKitCommon.cmake +++ b/Source/cmake/WebKitCommon.cmake @@ -24,7 +24,11 @@ if (NOT HAS_RUN_WEBKIT_COMMON) # TODO Enforce version requirement for perl find_package(Perl 5.10.0 REQUIRED) - set(Python_ADDITIONAL_VERSIONS 3) + # Workaround for Windows Store python3.exe + # Official Python packages for Windows don't have python3.exe, only python.exe + if (NOT WIN32) + set(Python_ADDITIONAL_VERSIONS 3) + endif () find_package(PythonInterp 2.7.0 REQUIRED) # We cannot check for RUBY_FOUND because it is set only when the full package is installed and |