diff --git a/CMakeLists.txt b/CMakeLists.txt index d4294af71..00795f2d4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,6 +57,7 @@ if (DEFINED ${VulkanHeaders_VERSION} AND ${VulkanHeaders_VERSION} VERSION_GREATE message(WARNING "The Vulkan Headers version ${VulkanHeaders_VERSION} is newer than the expected version ${PROJECT_VERSION} used by the Vulkan-Loader. May cause issues.") endif() +# Workaround AppleClang using the wrong headers when there are headers in /usr/local/include if (CMAKE_C_COMPILER_ID STREQUAL AppleClang AND TARGET Vulkan::Headers AND CMAKE_VERSION VERSION_GREATER_EQUAL 3.25) set_target_properties(Vulkan::Headers PROPERTIES SYSTEM OFF) endif()