mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
synced 2024-11-09 22:20:07 +00:00
parent
b367b36ffc
commit
3703ef88ff
@ -2,6 +2,9 @@ cmake_minimum_required(VERSION 3.9)
|
|||||||
|
|
||||||
project(VulkanMemoryAllocator)
|
project(VulkanMemoryAllocator)
|
||||||
|
|
||||||
|
# https://cmake.org/cmake/help/latest/variable/PROJECT_IS_TOP_LEVEL.html
|
||||||
|
string(COMPARE EQUAL ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_SOURCE_DIR} PROJECT_IS_TOP_LEVEL)
|
||||||
|
|
||||||
if(PROJECT_IS_TOP_LEVEL)
|
if(PROJECT_IS_TOP_LEVEL)
|
||||||
find_package(Vulkan REQUIRED)
|
find_package(Vulkan REQUIRED)
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user