Merge pull request #435 from scribam/vma-enable-install

Allow external control of whether to install
This commit is contained in:
Adam Sawicki 2024-07-17 10:03:54 +02:00 committed by GitHub
commit ceb6aeafb0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,7 +12,8 @@ if (CMAKE_VERSION VERSION_LESS "3.21")
string(COMPARE EQUAL ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_SOURCE_DIR} PROJECT_IS_TOP_LEVEL)
endif()
if (PROJECT_IS_TOP_LEVEL)
option(VMA_ENABLE_INSTALL "Install VulkanMemoryAllocator" ${PROJECT_IS_TOP_LEVEL})
if (VMA_ENABLE_INSTALL)
include(GNUInstallDirs)
include(CMakePackageConfigHelpers)