From 698daa7635e7700ecab4e2c0870e9a1d9312c832 Mon Sep 17 00:00:00 2001 From: Sergey Kosarevsky Date: Wed, 17 Dec 2025 11:12:09 -0800 Subject: [PATCH] Fix https://github.com/facebook/igl/issues/327 --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5f83f19def..608795bf8d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -233,6 +233,9 @@ if(IGL_WITH_IGLU) endif() if(APPLE AND IGL_WITH_METAL) target_compile_definitions(IGLLibrary PUBLIC "IGL_BACKEND_ENABLE_METAL=1") + if(NOT IGL_WITH_VULKAN) + target_sources(IGLLibrary PRIVATE "src/igl/vulkan/util/TextureFormat.cpp") + endif() endif() target_compile_definitions(IGLLibrary PUBLIC "IGL_CMAKE_BUILD=1")