<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:clopez&#64;igalia.com" title="Carlos Alberto Lopez Perez &lt;clopez&#64;igalia.com&gt;"> <span class="fn">Carlos Alberto Lopez Perez</span></a>
</span> changed
              <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">bug 150353</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
               &nbsp;
           </td>
           <td>clopez&#64;igalia.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><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#c2">Comment # 2</a>
              on <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">bug 150353</a>
              from <span class="vcard"><a class="email" href="mailto:clopez&#64;igalia.com" title="Carlos Alberto Lopez Perez &lt;clopez&#64;igalia.com&gt;"> <span class="fn">Carlos Alberto Lopez Perez</span></a>
</span></b>
        <pre>You can also disable the wayland target (is enabled by default) if you don't want to run webkitgtk+ on wayland.

Passing -DENABLE_WAYLAND_TARGET=OFF to cmake will do that.

If you use the script build-webkit you can do that as follows:

Tools/Scripts/build-webkit --gtk --release --cmakeargs='-DENABLE_WAYLAND_TARGET=OFF'


Regarding your proposed patch, maybe a better alternative would be to lower the required GTK+ version to 3.10 when building wayland. I'm not sure if we really require 3.12 or we can lower this requirement to 3.10

You can try this patch:

--- a/Source/cmake/OptionsGTK.cmake
+++ b/Source/cmake/OptionsGTK.cmake
&#64;&#64; -433,8 +433,8 &#64;&#64; if (ENABLE_WAYLAND_TARGET)
         message(FATAL_ERROR &quot;Recompile GTK+ with Wayland backend to use ENABLE_WAYLAND_TARGET&quot;)
     endif ()

-    if (ENABLE_WAYLAND_TARGET AND GTK3_VERSION VERSION_LESS 3.12)
-        message(FATAL_ERROR &quot;GTK+ 3.12 is required to use ENABLE_WAYLAND_TARGET&quot;)
+    if (ENABLE_WAYLAND_TARGET AND GTK3_VERSION VERSION_LESS 3.10)
+        message(FATAL_ERROR &quot;GTK+ 3.10 is required to use ENABLE_WAYLAND_TARGET&quot;)
     endif ()

     find_package(Wayland REQUIRED)


And try to see if everything build ok (including the wayland target)</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>