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()