From 92e5a17e769ae0ea979c15eb81dd6beeddc742f1 Mon Sep 17 00:00:00 2001 From: Dirk Stolle Date: Tue, 27 Feb 2024 06:36:11 +0100 Subject: [PATCH] specify version requirement for GLFW in readme and CMake file --- readme.md | 3 ++- webp-viewer/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index bff410a..fa5facf 100644 --- a/readme.md +++ b/readme.md @@ -15,7 +15,8 @@ load the first frame of an animated WebP image. ### Prerequisites To build webp-viewer from source you need a C++ compiler with support for C++17, -CMake 3.8 or later, OpenGL, the GLFW library and the libwebp library. +CMake 3.8 or later, OpenGL, the GLFW library (version 3.3 or later) and the +libwebp library. pkg-config is required to make it easier to find compiler options for the installed libraries. Additionally, the program uses Catch (C++ Automated Test Cases in Headers) to perform some tests. diff --git a/webp-viewer/CMakeLists.txt b/webp-viewer/CMakeLists.txt index 9ac3f30..1d0b82f 100644 --- a/webp-viewer/CMakeLists.txt +++ b/webp-viewer/CMakeLists.txt @@ -57,7 +57,7 @@ else () endif () # GLFW for window handling -find_package (glfw3 REQUIRED) +find_package (glfw3 3.3 REQUIRED) if (glfw3_FOUND) target_link_libraries (webp-viewer glfw) else ()