vcpkg locates ft2build.h in the root of /include and not the freetype2 subfolder

This commit is contained in:
Marek Roszko 2022-01-08 12:35:40 -05:00
parent 27c967421c
commit 5621e49b21
2 changed files with 8 additions and 0 deletions

View File

@ -28,7 +28,11 @@
#define OUTLINE_DECOMPOSER_H #define OUTLINE_DECOMPOSER_H
#include <vector> #include <vector>
#ifdef _MSC_VER
#include <ft2build.h>
#else
#include <freetype2/ft2build.h> #include <freetype2/ft2build.h>
#endif
#include FT_FREETYPE_H #include FT_FREETYPE_H
#include FT_OUTLINE_H #include FT_OUTLINE_H
#include <math/box2.h> #include <math/box2.h>

View File

@ -29,7 +29,11 @@
#include <gal/graphics_abstraction_layer.h> #include <gal/graphics_abstraction_layer.h>
#include <geometry/shape_poly_set.h> #include <geometry/shape_poly_set.h>
#ifdef _MSC_VER
#include <ft2build.h>
#else
#include <freetype2/ft2build.h> #include <freetype2/ft2build.h>
#endif
#include FT_FREETYPE_H #include FT_FREETYPE_H
#include FT_OUTLINE_H #include FT_OUTLINE_H
//#include <gal/opengl/opengl_freetype.h> //#include <gal/opengl/opengl_freetype.h>