Title: [214886] trunk
Revision
214886
Author
[email protected]
Date
2017-04-04 12:06:46 -0700 (Tue, 04 Apr 2017)

Log Message

[CMake] Enforce Python 2
https://bugs.webkit.org/show_bug.cgi?id=170439

Patch by Ross Kirsling <[email protected]> on 2017-04-04
Reviewed by Brent Fulgham.

* Source/cmake/WebKitCommon.cmake: Fail build immediately if Python 3 is detected.

Modified Paths

Diff

Modified: trunk/ChangeLog (214885 => 214886)


--- trunk/ChangeLog	2017-04-04 18:01:05 UTC (rev 214885)
+++ trunk/ChangeLog	2017-04-04 19:06:46 UTC (rev 214886)
@@ -1,3 +1,12 @@
+2017-04-04  Ross Kirsling  <[email protected]>
+
+        [CMake] Enforce Python 2
+        https://bugs.webkit.org/show_bug.cgi?id=170439
+
+        Reviewed by Brent Fulgham.
+
+        * Source/cmake/WebKitCommon.cmake: Fail build immediately if Python 3 is detected.
+
 2017-03-24  Carlos Garcia Campos  <[email protected]>
 
         [GTK] Add MIMETypeRegistry implementation using xdgmime and remove the GTK+ one

Modified: trunk/Source/cmake/WebKitCommon.cmake (214885 => 214886)


--- trunk/Source/cmake/WebKitCommon.cmake	2017-04-04 18:01:05 UTC (rev 214885)
+++ trunk/Source/cmake/WebKitCommon.cmake	2017-04-04 19:06:46 UTC (rev 214886)
@@ -20,6 +20,9 @@
     find_package(Perl 5.10.0 REQUIRED)
 
     find_package(PythonInterp 2.7.0 REQUIRED)
+    if (PYTHON_VERSION_MAJOR GREATER 2)
+        message(FATAL_ERROR "Python 2 is required, but Python ${PYTHON_VERSION_MAJOR} was found.")
+    endif ()
 
     # We cannot check for RUBY_FOUND because it is set only when the full package is installed and
     # the only thing we need is the interpreter. Unlike Python, cmake does not provide a macro
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to