Stop regenerating openapitools.json in multiple folders

This commit is contained in:
2026-06-11 19:41:49 -04:00
parent f2aa8d5c15
commit e87c0fe8ec
4 changed files with 23 additions and 9 deletions
+14
View File
@@ -41,6 +41,20 @@ function(cppbessot_initialize_paths)
set(CPPBESSOT_WORKDIR_ABS "${CPPBESSOT_WORKDIR_ABS}" PARENT_SCOPE)
endfunction()
function(cppbessot_get_module_root out_var)
# Purpose: Resolve the CppBeSSOT module root, respecting parent overrides.
# Inputs:
# - CPPBESSOT_MODULE_ROOT (optional): Parent-provided module root path.
# Outputs:
# - <out_var> (PARENT_SCOPE): Absolute module root path.
if(DEFINED CPPBESSOT_MODULE_ROOT AND NOT "${CPPBESSOT_MODULE_ROOT}" STREQUAL "")
get_filename_component(_module_root "${CPPBESSOT_MODULE_ROOT}" ABSOLUTE)
else()
get_filename_component(_module_root "${_CPPBESSOT_GENERATION_COMMON_DIR}/.." ABSOLUTE)
endif()
set(${out_var} "${_module_root}" PARENT_SCOPE)
endfunction()
function(cppbessot_require_var var_name)
# Purpose: Fail fast if a required CMake variable is missing/empty.
# Inputs: