pineapple/externals/vcpkg/ports/wt/0002-link-glew.patch
2022-07-23 03:01:36 +02:00

23 lines
735 B
Diff
Executable file

From 6301c4ccaf8d3b6982898fed84e691ab8ddd7a4f Mon Sep 17 00:00:00 2001
From: Robert Schumacher <roschuma@microsoft.com>
Date: Fri, 23 Feb 2018 03:12:45 -0800
Subject: [PATCH 2/3] link glew
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 80734fb..70e755b 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -556,7 +556,8 @@ ENDIF("${WT_WRASTERIMAGE_IMPLEMENTATION}" STREQUAL "GraphicsMagick")
IF(HAVE_GL)
INCLUDE_DIRECTORIES(${GL_INCLUDE_DIRS})
IF(USE_SYSTEM_GLEW)
- TARGET_LINK_LIBRARIES(wt PRIVATE GLEW)
+ find_package(glew REQUIRED)
+ TARGET_LINK_LIBRARIES(wt PRIVATE GLEW::GLEW)
ENDIF(USE_SYSTEM_GLEW)
TARGET_LINK_LIBRARIES(wt PRIVATE ${GL_LIBRARIES})
ELSE(HAVE_GL)
--
2.16.2.windows.1