From 861ef3c98631982a293a55e0d6151db309cc33c7 Mon Sep 17 00:00:00 2001 From: scribam Date: Sat, 13 Jul 2024 19:40:25 +0200 Subject: [PATCH] Allow external control of whether to install --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6bce0a1..8adeb7a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)