Skip to content

Commit

Permalink
internal: add NO_CLEAN_AFTER_BUILD CMake option (#1939)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pospelove authored Apr 21, 2024
1 parent ad0f056 commit 642eb31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 642eb31

Please sign in to comment.