Skip to content

Instantly share code, notes, and snippets.

@lumie1337
Created May 18, 2020 12:16
Show Gist options
  • Save lumie1337/fa7fd9d2d7f27ff24937dc517b76ceb5 to your computer and use it in GitHub Desktop.
Save lumie1337/fa7fd9d2d7f27ff24937dc517b76ceb5 to your computer and use it in GitHub Desktop.
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 309a0ee..fc4b8a0 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -1,10 +1,12 @@
find_package(PkgConfig REQUIRED)
find_package(Freetype REQUIRED)
+find_package(fontconfig REQUIRED)
pkg_check_modules(harfbuzz REQUIRED IMPORTED_TARGET harfbuzz)
set(HB_INSPECT_LIBRARIES fmt::fmt-header-only crispy::core Freetype::Freetype crispy::core)
if(APPLE)
- list(APPEND HB_INSPECT_LIBRARIES PkgConfig::fontconfig)
+ list(APPEND HB_INSPECT_LIBRARIES fontconfig)
+ #list(APPEND HB_INSPECT_LIBRARIES PkgConfig::fontconfig)
list(APPEND HB_INSPECT_LIBRARIES PkgConfig::harfbuzz)
elseif("${CMAKE_SYSTEM}" MATCHES "Linux" OR APPLE)
list(APPEND HB_INSPECT_LIBRARIES fontconfig)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment