summaryrefslogtreecommitdiffstatsci
diff options
context:
space:
mode:
authorChristoph Neuhauser <c.a.neuhauser@gmail.com>2023-02-05 15:36:22 +0100
committerj-p <jp_bruyere@hotmail.com>2023-02-05 18:26:22 +0100
commitc0fc2e86d6759278298e68f8e5629744cad44395 (patch)
tree8ded2fe06cbd5f981038760ca6ff4ff15b5b0b80
parent6c329acfb888d9a9aefd8e1cae6d7162c053e70b (diff)
fix build with static GLFW
-rw-r--r--CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
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)