Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Unconditionally load Boost in CMake config #3779

Merged
merged 4 commits into from
Oct 24, 2024

Conversation

stephenswat
Copy link
Member

Currently, as @krasznaa discovered, the finding of the Boost dependency in an installed version of Acts (i.e., through ActsConfig.cmake uses the @ACTS_USE_SYSTEM_BOOST@ template, but this variable no longer exists.

CMake, in its infinite wisdom, silently ignores this, producing if(), which it again silently accepts and which apparently evaluates to false, so Boost is never loaded.

This commit fixes the issue by ensuring that Boost is loaded unconditionally.

@github-actions github-actions bot added the Infrastructure Changes to build tools, continous integration, ... label Oct 23, 2024
@stephenswat
Copy link
Member Author

@andiwand if you want to have a laugh at how hilariously terrible CMake is.

@andiwand
Copy link
Contributor

defaults all the way - love it <3

andiwand
andiwand previously approved these changes Oct 23, 2024
@stephenswat stephenswat force-pushed the build/install_load_boost branch 2 times, most recently from fe8e598 to c130a98 Compare October 23, 2024 14:12
Currently, as @krasznaa discovered, the finding of the Boost dependency
in an installed version of Acts (i.e., through `ActsConfig.cmake` uses
the `@ACTS_USE_SYSTEM_BOOST@` template, but this variable no longer
exists.

CMake, in its infinite wisdom, silently ignores this, producing `if()`,
which it _again_ silently accepts and which apparently evaluates to
false, so Boost is never loaded.

This commit fixes the issue by ensuring that Boost is loaded
unconditionally.
Copy link

github-actions bot commented Oct 23, 2024

📊: Physics performance monitoring for d795280

Full contents

physmon summary

@paulgessinger
Copy link
Member

I'm a bit confused why the downstream project test didn't discover this, actually.

Copy link

@kodiakhq kodiakhq bot merged commit 645a8d1 into acts-project:main Oct 24, 2024
42 checks passed
@acts-project-service acts-project-service added the Fails Athena tests This PR causes a failure in the Athena tests label Oct 25, 2024
@paulgessinger paulgessinger modified the milestones: next, v37.4.0, v37.3.0 Nov 8, 2024
Rosie-Hasan pushed a commit to Rosie-Hasan/acts that referenced this pull request Nov 13, 2024
Currently, as @krasznaa discovered, the finding of the Boost dependency in an installed version of Acts (i.e., through `ActsConfig.cmake` uses the `@ACTS_USE_SYSTEM_BOOST@` template, but this variable no longer exists.

CMake, in its infinite wisdom, silently ignores this, producing `if()`, which it _again_ silently accepts and which apparently evaluates to false, so Boost is never loaded.

This commit fixes the issue by ensuring that Boost is loaded unconditionally.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fails Athena tests This PR causes a failure in the Athena tests Infrastructure Changes to build tools, continous integration, ...
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants