From e65eff22e87f8cafe7c325b6ee03e860f020b399 Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Thu, 7 Nov 2024 12:44:03 -0700 Subject: [PATCH] CMake: Add include_guard() statements to fontconfig and vulkan This should prevent extra calls to find_package() from causing issues. --- Meta/CMake/fontconfig.cmake | 2 ++ Meta/CMake/vulkan.cmake | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Meta/CMake/fontconfig.cmake b/Meta/CMake/fontconfig.cmake index cd16431a3d0..4ea63d69bee 100644 --- a/Meta/CMake/fontconfig.cmake +++ b/Meta/CMake/fontconfig.cmake @@ -1,3 +1,5 @@ +include_guard() + if (NOT APPLE AND NOT ANDROID) find_package(Fontconfig REQUIRED) set(HAS_FONTCONFIG ON CACHE BOOL "" FORCE) diff --git a/Meta/CMake/vulkan.cmake b/Meta/CMake/vulkan.cmake index e59c9c564f9..c9847706dce 100644 --- a/Meta/CMake/vulkan.cmake +++ b/Meta/CMake/vulkan.cmake @@ -1,3 +1,5 @@ +include_guard() + if (NOT APPLE) find_package(VulkanHeaders CONFIG QUIET) find_package(Vulkan QUIET)