From: Christoph Neuhauser Date: Sun, 5 Feb 2023 14:36:22 +0000 (+0100) Subject: fix build with static GLFW X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=c0fc2e86d6759278298e68f8e5629744cad44395;p=jp%2Fvkvg.git fix build with static GLFW --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 193f4a9..f159319 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -126,7 +126,13 @@ FIND_PACKAGE(Vulkan REQUIRED) FIND_PACKAGE(Freetype QUIET) FIND_PACKAGE(Fontconfig QUIET) FIND_PACKAGE(HarfBuzz QUIET) -FIND_PACKAGE(GLFW3 QUIET) +FIND_PACKAGE(glfw3 CONFIG QUIET) +if (glfw3_FOUND) + set(GLFW3_FOUND TRUE) + set(GLFW3_LIBRARY glfw) +else() + FIND_PACKAGE(GLFW3 QUIET) +endif() FIND_PACKAGE(Doxygen QUIET) CMAKE_DEPENDENT_OPTION(VKVG_USE_FREETYPE "use freetype to load and render font glyphs" ON "Freetype_FOUND" OFF)