Fix build on windows when vulkan is not supported (#9439)

Co-authored-by: Sungun Park <sungunpark@google.com>
This commit is contained in:
imadr
2025-12-01 18:22:38 -08:00
committed by GitHub
parent 7386220325
commit 8b2bfa7e9d

View File

@@ -37,9 +37,12 @@ set(SRCS
src/IcoSphere.cpp
src/MeshAssimp.cpp
src/Sphere.cpp
src/VulkanPlatformHelper.cpp
)
if (FILAMENT_SUPPORTS_VULKAN)
list(APPEND SRCS src/VulkanPlatformHelper.cpp)
endif()
set(LIBS
assimp
camutils
@@ -79,7 +82,11 @@ endif()
if (WIN32)
list(APPEND SRCS src/NativeWindowHelperWindows.cpp)
list(APPEND SRCS src/VulkanPlatformHelperWindows.cpp)
if (FILAMENT_SUPPORTS_VULKAN)
list(APPEND SRCS src/VulkanPlatformHelperWindows.cpp)
endif()
list(APPEND LIBS sdl2main)
endif()