Paths to vulkan libraries, paths and related components were hardcoded in the platform cmake file. This patch separates this by using adding CMake modules for Vulkan and ShaderC. This change has only been applied to the macOs configuration as that is currently our main platform for development. Other platforms will be added during the development of the Vulkan back-end.
26 lines
505 B
CMake
26 lines
505 B
CMake
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright 2022 Blender Foundation. All rights reserved.
|
|
|
|
set(INC
|
|
.
|
|
)
|
|
|
|
set(INC_SYS
|
|
${VULKAN_INCLUDE_DIRS}
|
|
${MOLTENVK_INCLUDE_DIRS}
|
|
)
|
|
|
|
set(SRC
|
|
vk_mem_alloc_impl.cc
|
|
|
|
vk_mem_alloc.h
|
|
)
|
|
|
|
blender_add_lib(extern_vulkan_memory_allocator "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
|
|
|
|
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
|
|
target_compile_options(extern_vulkan_memory_allocator
|
|
PRIVATE "-Wno-nullability-completeness"
|
|
)
|
|
endif()
|