diff --git a/scripts/cmake/vcpkg_configure_gn.cmake b/scripts/cmake/vcpkg_configure_gn.cmake index 3363546467..efd0bcb4b4 100644 --- a/scripts/cmake/vcpkg_configure_gn.cmake +++ b/scripts/cmake/vcpkg_configure_gn.cmake @@ -5,6 +5,7 @@ function(z_vcpkg_configure_gn_generate) endif() message(STATUS "Generating build (${arg_CONFIG})...") + file(REMOVE_RECURSE "${CURRENT_BUILDTREES_DIR}/${arg_CONFIG}") vcpkg_execute_required_process( COMMAND "${GN}" gen "${CURRENT_BUILDTREES_DIR}/${arg_CONFIG}" "${arg_ARGS}" WORKING_DIRECTORY "${arg_SOURCE_PATH}"