Skip to content

fix(cmake): add Alignment component before Plugins subdirectory#5329

Merged
paulgessinger merged 1 commit intoacts-project:mainfrom
wdconinc:patch-11
Apr 10, 2026
Merged

fix(cmake): add Alignment component before Plugins subdirectory#5329
paulgessinger merged 1 commit intoacts-project:mainfrom
wdconinc:patch-11

Conversation

@wdconinc
Copy link
Copy Markdown
Contributor

@wdconinc wdconinc commented Apr 9, 2026

fix(cmake): add Alignment component before Plugins subdirectory

--- END COMMIT MESSAGE ---

With the addition of the Mille plugin, which depends on the Alignment component, there is a new ordering requirement on how the targets are defined. This is in particular relevant in third party project (possibly why it was not noticed here) where without this fix we get:

-- loading components:
--   Core
--   Fatras
--   PluginActSVG
--   PluginFpeMonitoring
--   PluginGeant4
--   PluginJson
--   PluginMille
--   PluginOnnx
--   PluginRoot
--   PluginDD4hep
--   PluginEDM4hep
--   Alignment
CMake Error at CMakeLists.txt:237 (find_package):
  Found package configuration file:

    /opt/software/linux-skylake/acts-45.4.0-lcgvdhegpoy3yh6vgbkaoqohtwijhsz7/lib/cmake/Acts/ActsConfig.cmake

  but it set Acts_FOUND to FALSE so package "Acts" is considered to be NOT
  FOUND.  Reason given by package:

  The following imported targets are referenced, but are missing:
  Acts::Alignment

which is caused because at the time PluginMille tries to check its dependencies, the Alignment component is not loaded yet.

With the change here, there are no errors loading Acts with the Mille plugin.

There are no Plugin dependencies in the Alignment component, so we are not introducing the reverse issue here.

Copilot AI review requested due to automatic review settings April 9, 2026 23:31
@github-actions github-actions bot added this to the next milestone Apr 9, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Reorders top-level CMake component inclusion so the Alignment component is defined before the Plugins subdirectory, ensuring plugins (notably PluginMille) can link against Acts::Alignment/ActsAlignment during package component loading in downstream builds.

Changes:

  • Move add_component_if(Alignment ...) before add_subdirectory(Plugins) to satisfy plugin dependency ordering.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Copy Markdown
Contributor

📊: Physics performance monitoring for ba75232

Full contents

physmon summary

@sonarqubecloud
Copy link
Copy Markdown

@paulgessinger
Copy link
Copy Markdown
Member

@goblirsc

@paulgessinger paulgessinger merged commit 047b6d9 into acts-project:main Apr 10, 2026
46 of 48 checks passed
@wdconinc wdconinc deleted the patch-11 branch April 10, 2026 11:45
@andiwand andiwand modified the milestones: next, v46.2.0 Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants