Skip to content

Commit ceb6aea

Browse files
Merge pull request #435 from scribam/vma-enable-install
Allow external control of whether to install
2 parents 98c4f34 + 861ef3c commit ceb6aea

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)