From e72d6364d4fcc04cdecb11d1d190312437d69ffd Mon Sep 17 00:00:00 2001 From: Egutierrez Date: Mon, 4 May 2026 14:06:34 +0200 Subject: [PATCH] feat(cpp): _GE_DIR y _DASH_DIR sobreescribibles para builds en worktrees Permite -D_GE_DIR= y -D_DASH_DIR= via cmake para apuntar estas apps externas a un worktree aislado. Sin override, comportamiento identico al previo. Habilita parallel-fix-issues sobre apps C++ cuyo binario sale del arbol cpp/ pero cuyo source vive en projects/. Co-Authored-By: Claude Opus 4.7 (1M context) --- cpp/CMakeLists.txt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index c663857b..7d565c89 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -296,13 +296,21 @@ if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/apps/text_editor_smoke/CMakeLists.txt) endif() # --- Registry Dashboard (lives in projects/fn_monitoring/apps/) --- -set(_DASH_DIR ${CMAKE_SOURCE_DIR}/../projects/fn_monitoring/apps/registry_dashboard) +# _DASH_DIR puede sobreescribirse via -D_DASH_DIR= para apuntar a un +# worktree (parallel-fix-issues u otros flujos que aislen builds). +if(NOT DEFINED _DASH_DIR) + set(_DASH_DIR ${CMAKE_SOURCE_DIR}/../projects/fn_monitoring/apps/registry_dashboard) +endif() if(EXISTS ${_DASH_DIR}/CMakeLists.txt) add_subdirectory(${_DASH_DIR} ${CMAKE_BINARY_DIR}/apps/registry_dashboard) endif() # --- Graph Explorer (lives in projects/osint_graph/apps/) --- -set(_GE_DIR ${CMAKE_SOURCE_DIR}/../projects/osint_graph/apps/graph_explorer) +# _GE_DIR puede sobreescribirse via -D_GE_DIR= para apuntar a un +# worktree (parallel-fix-issues u otros flujos que aislen builds). +if(NOT DEFINED _GE_DIR) + set(_GE_DIR ${CMAKE_SOURCE_DIR}/../projects/osint_graph/apps/graph_explorer) +endif() if(EXISTS ${_GE_DIR}/CMakeLists.txt) add_subdirectory(${_GE_DIR} ${CMAKE_BINARY_DIR}/apps/graph_explorer) endif()