xo-cmake: generate .build/reconfigure.sh script to rerun cmake

This commit is contained in:
Roland Conybeare 2026-01-11 14:05:05 -05:00
commit 9d7679c3ad
3 changed files with 46 additions and 9 deletions

View file

@ -4,13 +4,10 @@ cmake_minimum_required(VERSION 3.10)
project(xo-umbrella VERSION 1.0)
# ----------------------------------------------------------------
# global build settings
include(GNUInstallDirs)
include(cmake/xo-bootstrap-macros.cmake)
# Adopting submodule builds directly into this cmake.
# Want this before including bootstrap macros,
# so local ./xo-cmake supersedes installed version
#
# Submodule builds will pickup dependent xo artifacts directly
# from sibling build dirs.
# (Contrast with a build that relies on install step).
@ -26,6 +23,12 @@ include(cmake/xo-bootstrap-macros.cmake)
#
set(XO_SUBMODULE_BUILD True)
# ----------------------------------------------------------------
# global build settings
include(GNUInstallDirs)
include(cmake/xo-bootstrap-macros.cmake)
# toplevel source directory; used only with XO_SUBMODULE_BUILD
set(XO_UMBRELLA_SOURCE_DIR ${CMAKE_SOURCE_DIR})
set(XO_UMBRELLA_REPO_SUBDIR .)