<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [CMake] GTK3 version is too low to support Wayland when Wayland is enabled."
   href="https://bugs.webkit.org/show_bug.cgi?id=150353">150353</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[CMake] GTK3 version is too low to support Wayland when Wayland is enabled.
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>WebKit Gtk
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>xuewen.ok&#64;gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>bugs-noreply&#64;webkitgtk.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When I run cmake build in my ubuntu 14.04 64-bit, cmake reports following errors:

CMake Error at Source/cmake/OptionsGTK.cmake:418 (message):
  GTK+ 3.12 is required to use ENABLE_WAYLAND_TARGET
Call Stack (most recent call first):
  CMakeLists.txt:123 (include)

My GTK+3 and Wayland version is 3.10.8 which is less than 3.12, but the Source/cmake/FindGTK3.cmake:61 set the GTK3_SUPPORTS_WAYLAND to true.
        set(GTK3_SUPPORTS_WAYLAND TRUE)

Should the FindGTK3.cmake limit the GTK+3 version to 3.12 to enable wayland? Like the following:

diff --git a/Source/cmake/FindGTK3.cmake b/Source/cmake/FindGTK3.cmake
index 6bc2649..f708dae 100644
--- a/Source/cmake/FindGTK3.cmake
+++ b/Source/cmake/FindGTK3.cmake
&#64;&#64; -57,7 +57,7 &#64;&#64; if (GTK3_VERSION AND VERSION_OK)
     endif ()

diff --git a/Source/cmake/FindGTK3.cmake b/Source/cmake/FindGTK3.cmake
index 6bc2649..d9eb88c 100644
--- a/Source/cmake/FindGTK3.cmake
+++ b/Source/cmake/FindGTK3.cmake
&#64;&#64; -57,7 +57,7 &#64;&#64; if (GTK3_VERSION AND VERSION_OK)
     endif ()

     pkg_check_modules(GTK3_WAYLAND gtk+-wayland-3.0)
-    if (&quot;${GTK3_WAYLAND_VERSION}&quot; VERSION_EQUAL &quot;${GTK3_VERSION}&quot;)
+    if (&quot;${GTK3_WAYLAND_VERSION}&quot; VERSION_EQUAL &quot;${GTK3_VERSION}&quot; AND NOT(&quot;${GTK3_WAYLAND_VERSION}&quot; VERSION_LESS &quot;3.12&quot;))
         set(GTK3_SUPPORTS_WAYLAND TRUE)
     else ()
         set(GTK3_SUPPORTS_WAYLAND FALSE)</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>