From 26a4d125a08b902f4a65f1f0cd7eb0b587c78b85 Mon Sep 17 00:00:00 2001 From: Jason Yundt Date: Mon, 27 May 2024 10:14:01 -0400 Subject: [PATCH] Remove unnecessary find_package(OpenGL) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before this change, CMakeLists.txt would run find_package(OpenGL), but it would never use any of the targets or variables that calling find_package(OpenGL) produces [1]. As a result, the call to find_package(OpenGL) didn’t really do anything. [1]: --- CMakeLists.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 431d4bdfc..7fd1c45df 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -89,7 +89,6 @@ if(UNIX) find_package(SDL2 REQUIRED) find_package(Curses REQUIRED) - find_package(OpenGL REQUIRED) # Some versions of the SDL2 find_package set SDL2_INCLUDE_DIR and some set a plural SDL2_INCLUDE_DIRS. Check both. message("SDL2 Include Dir is ${SDL2_INCLUDE_DIR} ${SDL2_INCLUDE_DIRS}") endif()