Commits (2)
......@@ -185,6 +185,11 @@ function (_superbuild_ExternalProject_add name)
LOG_INSTALL 1)
endif ()
if (SUPERBUILD_DEBUG_CONFIGURE_STEPS)
list(APPEND args
LOG_CONFIGURE 1)
endif ()
# Quote args to keep empty list elements around so that we properly parse
# empty install, configure, build, etc.
ExternalProject_add("${name}" "${args}")
......
......@@ -46,6 +46,9 @@ include(CMakeParseArguments)
# anything else can use it that needs it.
set(_superbuild_list_separator "-+-")
option(SUPERBUILD_DEBUG_CONFIGURE_STEPS "Dump logs of the configure steps" OFF)
mark_as_advanced(SUPERBUILD_DEBUG_CONFIGURE_STEPS)
#[==[.md
# Adding a project to the superbuild
......@@ -982,6 +985,11 @@ function (_superbuild_add_project_internal name)
${apple_flags}
${cmake_dep_args})
if (SUPERBUILD_DEBUG_CONFIGURE_STEPS)
list(APPEND cmake_params
--trace-expand)
endif ()
# Get extra flags added using superbuild_append_flags(), if any.
set(extra_vars
c_flags
......