From af435186cae60295f3b49731ef2bf093faccc54f Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 7 May 2022 00:07:48 +0200 Subject: [PATCH] Fix build error message with removed OSMesa option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The correct hint wasn’t GLFW_PLATFORM but GLFW_OSMESA_CONTEXT_API. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f5e538bf..7b739bbf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,7 +32,7 @@ include(GNUInstallDirs) include(CMakeDependentOption) if (GLFW_USE_OSMESA) - message(FATAL_ERROR "GLFW_USE_OSMESA has been removed; set the GLFW_PLATFORM init hint") + message(FATAL_ERROR "GLFW_USE_OSMESA has been removed; set the GLFW_CONTEXT_CREATION_API window hint to GLFW_OSMESA_CONTEXT_API") endif() cmake_dependent_option(GLFW_BUILD_WIN32 "Build support for Win32" ON "WIN32" OFF)