From da5a55e034c74a42485358cf704e75467a62696e Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Wed, 13 Apr 2022 11:38:20 +0200 Subject: [PATCH] CMake: Fix error message for failing OpenGL tests We still mentioned the QMAKE_* variables. Replace them with the OpenGL_DIR CMake variable. Change-Id: If53c2bff030cf03cb43d10f738949f59ac8dd730 Reviewed-by: Alexey Edelev (cherry picked from commit fd8441a97cdd212098aeb214b2a5b2caaf108e3c) Reviewed-by: Qt Cherry-pick Bot --- src/gui/configure.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/configure.cmake b/src/gui/configure.cmake index 65e4ae81e69..9159d3c28f4 100644 --- a/src/gui/configure.cmake +++ b/src/gui/configure.cmake @@ -1314,7 +1314,7 @@ qt_configure_add_report_entry( ) qt_configure_add_report_entry( TYPE ERROR - MESSAGE "The OpenGL functionality tests failed! You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL[_ES2], QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform." + MESSAGE "The OpenGL functionality tests failed! You might need to modify the OpenGL package search path by setting the OpenGL_DIR CMake variable to the OpenGL library's installation directory." CONDITION QT_FEATURE_gui AND NOT WATCHOS AND ( NOT INPUT_opengl STREQUAL 'no' ) AND NOT QT_FEATURE_opengl_desktop AND NOT QT_FEATURE_opengles2 AND NOT QT_FEATURE_opengl_dynamic ) qt_configure_add_report_entry(