Commit 18c22265 authored by Manuel Grizonnet's avatar Manuel Grizonnet

WRG: set cmake policy 72 in Cmakelists as suggested by Laurentiu

parent 01caf1b2
......@@ -23,7 +23,8 @@ cmake_minimum_required(VERSION 3.1.0)
foreach(p
CMP0025 # CMake 3.0
CMP0042 # CMake 3.0
CMP0058
CMP0058 # CMake 3.3
CMP0072 # CMake 3.11
)
if(POLICY ${p})
cmake_policy(SET ${p} NEW)
......
......@@ -26,7 +26,6 @@ set(OTBOpenGL_LIBRARIES ${OPENGL_LIBRARIES})
set(OTBOpenGL_EXPORT_CODE_INSTALL "
set(OTBOpenGL_LIBRARIES)
set(OTBOpenGL_INCLUDE_DIRS)
set( OpenGL_GL_PREFERENCE \"GLVND\" )
find_package(OpenGL REQUIRED)
set(OTBOpenGL_LIBRARIES \${OPENGL_LIBRARIES})
set(OTBOpenGL_SYSTEM_INCLUDE_DIRS \${OPENGL_INCLUDE_DIR})
......
......@@ -61,9 +61,6 @@ if(APPLE)
OPENGL_gl_LIBRARY
)
else(APPLE)
# CMake 3.11+ setting; see 'cmake --help-policy CMP0072'
set( OpenGL_GL_PREFERENCE "GLVND" )
find_package(OpenGL REQUIRED)
mark_as_advanced(OPENGL_INCLUDE_DIR)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment