MINGW-packages/mingw-w64-glsl-optimizer-git/0004-tests-MinGW-w64-Use-find_package-OpenGL-in-CMakeList.patch
Christoph Reiter 4d8828efed Make pkgbase of all packages match the name of the PKGBUILD directory (#2878)
This either changes the pkgbase to match the directory name
or the other way around.

The motivation for this is to make it possible to automatically generate
an URL to the PKGBUILD file from the package information alone.
2017-09-12 14:25:41 +03:00

29 lines
841 B
Diff

From 1320541ceaa321b2c0e105ba1c4161cfb9ee12f1 Mon Sep 17 00:00:00 2001
From: Ray Donnelly <mingw.android@gmail.com>
Date: Wed, 22 Jul 2015 08:44:33 +0100
Subject: [PATCH 4/6] tests (MinGW-w64): Use find_package(OpenGL) in
CMakeLists.txt
---
CMakeLists.txt | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c058bef..d6ab5d8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -42,6 +42,10 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
find_library(OpenGL_LIBRARY OpenGL )
target_link_libraries(glsl_test ${OpenGL_LIBRARY})
endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
+if(MINGW)
+ find_package(OpenGL)
+ target_link_libraries(glsl_test ${OPENGL_gl_LIBRARY})
+endif(MINGW)
file(GLOB glslopt_sources contrib/glslopt/*.cpp)
add_executable(glslopt ${glslopt_sources})
--
2.4.5