Skip to content

Commit 861ef3c

Browse files
committed
Allow external control of whether to install
1 parent 98c4f34 commit 861ef3c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ if (CMAKE_VERSION VERSION_LESS "3.21")
1212
string(COMPARE EQUAL ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_SOURCE_DIR} PROJECT_IS_TOP_LEVEL)
1313
endif()
1414

15-
if (PROJECT_IS_TOP_LEVEL)
15+
option(VMA_ENABLE_INSTALL "Install VulkanMemoryAllocator" ${PROJECT_IS_TOP_LEVEL})
16+
if (VMA_ENABLE_INSTALL)
1617
include(GNUInstallDirs)
1718
include(CMakePackageConfigHelpers)
1819

0 commit comments

Comments
 (0)