diff options
| author | Simon Hausmann <simon.hausmann@qt.io> | 2019-06-07 22:36:25 +0200 |
|---|---|---|
| committer | dan-shaw <51385773+dan-shaw@users.noreply.github.com> | 2019-06-07 13:36:24 -0700 |
| commit | 388d219f256b75452c088b4cc2e16fd38f7f6995 (patch) | |
| tree | 8d4d97b4a150fa7d17141790c2f71f8aa04e9ad6 /toolsrc/src/tests.arguments.cpp | |
| parent | 1f3964f18b18bbffbf7064fe3ddc6d6f420d804b (diff) | |
| download | vcpkg-388d219f256b75452c088b4cc2e16fd38f7f6995.tar.gz vcpkg-388d219f256b75452c088b4cc2e16fd38f7f6995.zip | |
Fix freetype cmake config files (#6754)
The way of including freetype headers is by using
#include <ft2build.h>
#include FT_FREETYPE_H
along with $root/include/freetype which has $root/include/freetype/ft2build.h
and then the rest of the headers under $root/include/freetype/freetype2/*.h.
The portfile.cmake moves the headers one directory up into $root/include
so that there's $root/include/ft2build.h and the rest of the headers
under $root/include/freetype/.
This in turn means that the above way of including header files requires
$root/include to be in the include search path. That's not the case by
default and the generated freetype-config.cmake also doesn't include
that.
Therefore the freetype config approach results in failing builds when
applications wants to use it. This is easy to reproduce using
find_package(Freetype CONFIG REQUIRED)
...
target_link_libraries(foo PRIVATE freetype)
As a remedy, this patch fixes the freetype-config.cmake file to add
$root/include in the include search path.
Diffstat (limited to 'toolsrc/src/tests.arguments.cpp')
0 files changed, 0 insertions, 0 deletions
