CMake: Add include_guard() statements to fontconfig and vulkan

This should prevent extra calls to find_package() from causing
issues.
This commit is contained in:
Andrew Kaster 2024-11-07 12:44:03 -07:00 committed by Andrew Kaster
parent c453761c3e
commit e65eff22e8
Notes: github-actions[bot] 2024-11-08 18:18:23 +00:00
2 changed files with 4 additions and 0 deletions

View file

@ -1,3 +1,5 @@
include_guard()
if (NOT APPLE AND NOT ANDROID) if (NOT APPLE AND NOT ANDROID)
find_package(Fontconfig REQUIRED) find_package(Fontconfig REQUIRED)
set(HAS_FONTCONFIG ON CACHE BOOL "" FORCE) set(HAS_FONTCONFIG ON CACHE BOOL "" FORCE)

View file

@ -1,3 +1,5 @@
include_guard()
if (NOT APPLE) if (NOT APPLE)
find_package(VulkanHeaders CONFIG QUIET) find_package(VulkanHeaders CONFIG QUIET)
find_package(Vulkan QUIET) find_package(Vulkan QUIET)