From bd23be2594f95185e11d28244cf4b955d249479e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Mon, 15 Apr 2019 02:26:15 +0200 Subject: [PATCH] Add pkgconfig dependency for GLFW_VULKAN_STATIC --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index bf8df289..3c0f6250 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -292,6 +292,13 @@ if (_GLFW_COCOA) set(glfw_PKG_LIBS "-framework Cocoa -framework IOKit -framework CoreFoundation -framework CoreVideo") endif() +#-------------------------------------------------------------------- +# Add the Vulkan loader as a dependency if necessary +#-------------------------------------------------------------------- +if (GLFW_VULKAN_STATIC) + list(APPEND glfw_PKG_DEPS "vulkan") +endif() + #-------------------------------------------------------------------- # Export GLFW library dependencies #--------------------------------------------------------------------