With cmake 3.16, I get the following warning:
............................................................................
CMake Warning (dev) at /usr/share/cmake-3.16/Modules/FindOpenGL.cmake:275 
(message):
  Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
  available.  Run "cmake --help-policy CMP0072" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  FindOpenGL found both a legacy GL library:

    OPENGL_gl_LIBRARY: /usr/lib/x86_64-linux-gnu/libGL.so

  and GLVND libraries for OpenGL and GLX:

    OPENGL_opengl_LIBRARY: /usr/lib/x86_64-linux-gnu/libOpenGL.so
    OPENGL_glx_LIBRARY: /usr/lib/x86_64-linux-gnu/libGLX.so

  OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
  compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
  CMakeLists.txt:227 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.
..........................................................................

What about the attached patch?
The resulting hugin executable works fine here.

        Kornel

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/20200120214822.184feec4%40admin1-desktop.
diff -r 2749e5583624 CMakeLists.txt
--- a/CMakeLists.txt	Mon Jan 20 18:53:04 2020 +0100
+++ b/CMakeLists.txt	Mon Jan 20 21:44:36 2020 +0100
@@ -9,6 +9,9 @@
 
 if(COMMAND cmake_policy)
   cmake_policy(SET CMP0003 NEW)
+  if (POLICY CMP0072)
+    cmake_policy(SET CMP0072 NEW)
+  endif()
 endif(COMMAND cmake_policy)
 
 if(APPLE)

Attachment: pgpJeTgLSK7ry.pgp
Description: Digitale Signatur von OpenPGP

Reply via email to