From af00b5e304127c36b181200bcd7cdd0ac7d52a61 Mon Sep 17 00:00:00 2001 From: James Turner Date: Fri, 5 Jun 2020 13:33:19 +0100 Subject: [PATCH] Set CMake OpenGL VND policy --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b8435a162..c753a3ea2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,6 +22,11 @@ if(COMMAND cmake_policy) if(POLICY CMP0071) cmake_policy(SET CMP0071 NEW) endif() + + # OpenGL VND policy : use the old definition for now, until we can audit this + if(POLICY CMP0072) + cmake_policy(SET CMP0071 OLD) + endif() endif() message("CMAKE Build type: ${CMAKE_BUILD_TYPE}")