From 5282f92f8f563ae0472e5cfd384a9952b54c8cc4 Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Sat, 1 Dec 2018 13:43:48 +0100 Subject: [PATCH] CMake: Silence OpenGL policy warning --- build/cmake/policies.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/cmake/policies.cmake b/build/cmake/policies.cmake index 46c35011a4..496aae7507 100644 --- a/build/cmake/policies.cmake +++ b/build/cmake/policies.cmake @@ -53,3 +53,8 @@ if(POLICY CMP0067) # Honor language standard in try_compile() source-file signature. cmake_policy(SET CMP0067 NEW) endif() + +if(POLICY CMP0072) + # FindOpenGL prefers GLVND by default when available. + cmake_policy(SET CMP0072 NEW) +endif()