diff --git a/CMakeLists.txt b/CMakeLists.txt index f063c0a8f..5bac27c51 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,10 @@ cmake_minimum_required(VERSION 2.8.12) +if (UNIX AND POLICY CMP0072) + # In case of both legacy and glvnd OpenGL libraries found. Prefer GLVND + cmake_policy(SET CMP0072 NEW) +endif() + project(obs-studio) option(BUILD_CAPTIONS "Build captions" FALSE)