From 47f59cd4d03f89ba6e89221588291db7012db2d9 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sat, 3 Oct 2026 09:17:29 +1000 Subject: [PATCH] [client] network: refresh nested MsQuic configuration --- cmake/MsQuic.cmake | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/cmake/MsQuic.cmake b/cmake/MsQuic.cmake index 6f16ecde..3dba8a6e 100644 --- a/cmake/MsQuic.cmake +++ b/cmake/MsQuic.cmake @@ -422,9 +422,17 @@ function(lg_add_static_msquic) list(APPEND LG_MSQUIC_LINK_LIBRARIES ${LG_MSQUIC_SYSTEM_LIBRARIES}) - # The submodule and injected compatibility files can change without - # invalidating ExternalProject's build stamp. Invoke the nested build so - # its own dependency tracking can update only the affected outputs. + set(LG_MSQUIC_RECONFIGURE_COMMAND + "${CMAKE_COMMAND}" + -S + -B + ${LG_MSQUIC_CMAKE_ARGS} + ) + + # The submodule, configuration, and injected compatibility files can change + # without invalidating ExternalProject's configure stamp. Reconfigure before + # every nested build, then let its dependency tracking update only the + # affected outputs. ExternalProject_Add(lg_msquic_build SOURCE_DIR "${LG_MSQUIC_SOURCE_DIR}" BINARY_DIR "${LG_MSQUIC_BINARY_DIR}" @@ -433,7 +441,9 @@ function(lg_add_static_msquic) INSTALL_COMMAND "" CMAKE_ARGS ${LG_MSQUIC_CMAKE_ARGS} BUILD_ALWAYS ON - BUILD_COMMAND ${LG_MSQUIC_BUILD_COMMAND} + BUILD_COMMAND + ${LG_MSQUIC_RECONFIGURE_COMMAND} + COMMAND ${LG_MSQUIC_BUILD_COMMAND} BUILD_BYPRODUCTS ${LG_MSQUIC_BUILD_BYPRODUCTS} )