CMake: [skip ci] fix deprecation warning about policy CMP0072

This commit is contained in:
wmayer
2022-10-25 01:14:27 +02:00
committed by Uwe
parent 142e796244
commit 3f48031cb4
+1 -1
View File
@@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
# relates to FindOpenGL module
# and cache variables OPENGL_gl_LIBRARY, OPENGL_glu_LIBRARY
if (POLICY CMP0072)
cmake_policy(SET CMP0072 OLD)
set(OpenGL_GL_PREFERENCE LEGACY)
endif(POLICY CMP0072)
find_program(CCACHE_PROGRAM ccache) #This check should occur before project()