[vcpkg_configure_gn] Remove build dir before configure (#28006)

This commit is contained in:
Kai Pastor 2022-11-28 18:58:38 +01:00 committed by GitHub
parent 62d01b70df
commit f11bad8304
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}"