magnum: Fix KHR/khrplatform.h not found on vcpkg in VS (#7926)

Signed-off-by: Squareys <squareys@googlemail.com>
This commit is contained in:
Jonathan Hale 2019-08-27 23:07:28 +02:00 committed by Curtis J Bezault
parent 32a53e1f37
commit 6f7ef0f142
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff --git a/src/MagnumExternal/OpenGL/GL/flextGL.h b/src/MagnumExternal/OpenGL/GL/flextGL.h
index 7d36f26e3..69cc8c82f 100644
--- a/src/MagnumExternal/OpenGL/GL/flextGL.h
+++ b/src/MagnumExternal/OpenGL/GL/flextGL.h
@@ -118,7 +118,7 @@ void flextGLInit(Magnum::GL::Context& context);
/* Data types */
-#include <KHR/khrplatform.h>
+#include "MagnumExternal/OpenGL/KHR/khrplatform.h"
typedef unsigned int GLenum;
typedef unsigned char GLboolean;
typedef unsigned int GLbitfield;

View File

@ -13,6 +13,7 @@ vcpkg_apply_patches(
${CMAKE_CURRENT_LIST_DIR}/001-sdl-includes.patch
${CMAKE_CURRENT_LIST_DIR}/002-tools-path.patch
${CMAKE_CURRENT_LIST_DIR}/003-glfw-find-module.patch
${CMAKE_CURRENT_LIST_DIR}/004-khrplatform-include.patch
)
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)