[Bf-blender-cvs] [37317f19c64] wl_default2: test wlp version check

Christian Rauch noreply at git.blender.org
Sat Jul 3 16:02:18 CEST 2021


Commit: 37317f19c649b1aa7b94862b1631168dc6577088
Author: Christian Rauch
Date:   Sat Jul 3 14:38:46 2021 +0100
Branches: wl_default2
https://developer.blender.org/rB37317f19c649b1aa7b94862b1631168dc6577088

test wlp version check

===================================================================

M	intern/ghost/CMakeLists.txt

===================================================================

diff --git a/intern/ghost/CMakeLists.txt b/intern/ghost/CMakeLists.txt
index 7774af5acaf..272ca9deee1 100644
--- a/intern/ghost/CMakeLists.txt
+++ b/intern/ghost/CMakeLists.txt
@@ -298,6 +298,16 @@ elseif(WITH_GHOST_X11 OR WITH_GHOST_WAYLAND)
     pkg_check_modules(wayland-protocols wayland-protocols>=1.15)
     message("wlp found: " ${wayland-protocols_FOUND})
     message("wlp version: " ${wayland-protocols_VERSION})
+    if (${wayland-protocols_FOUND})
+      if (${wayland-protocols_VERSION} VERSION_GREATER_EQUAL "1.15")
+        message("wlp version match")
+      else()
+        message("wlp version NOT match")
+      endif()
+    else()
+      message("wlp NOT found")
+    endif()
+
     if (NOT DEFINED wayland-protocols_FOUND)
       message("wlp mssing")
     endif()



More information about the Bf-blender-cvs mailing list