diff --git a/CMakeLists.txt b/CMakeLists.txt index 841a02b017..e15055d864 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,9 @@ endif() set(VCPKG_OVERLAY_TRIPLETS "${CMAKE_CURRENT_LIST_DIR}/overlay_triplets") set(VCPKG_OVERLAY_PORTS "${CMAKE_CURRENT_LIST_DIR}/overlay_ports") -if("$ENV{CI}" STREQUAL "true") +option(NO_CLEAN_AFTER_BUILD "Don't clean vcpkg temporary folders after build" OFF) + +if("$ENV{CI}" STREQUAL "true" OR NO_CLEAN_AFTER_BUILD) set(VCPKG_INSTALL_OPTIONS --no-print-usage) else() set(VCPKG_INSTALL_OPTIONS --no-print-usage --clean-after-build)