Skip to content

Update G4OptionalComponents.cmake #16

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

Closed
wants to merge 2 commits into from
Closed

Conversation

andriish
Copy link

@andriish andriish commented Jan 7, 2021

This PR should fix the compilation with -DGEANT4_USE_SYSTEM_PTL:BOOL=ON with PTL 1.0.0.

This PR should fix the compilation with -DGEANT4_USE_SYSTEM_PTL:BOOL=ON with PTL 1.0.0.
Copy link
Member

@jrmadsen jrmadsen left a comment

Choose a reason for hiding this comment

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

PTL::ptl is an interface target which is set to provide either PTL::ptl-shared or PTL::ptl-static. This change will break if PTL is built with only static libraries and will probably break Geant4 static library builds which, I believe, don't compile with -fPIC so you can't link to dynamic targets.

@drbenmorgan
Copy link
Member

This has been integrated in the upstream development repo and will be in the next patch. Many thanks for you contribution @andriish !

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.

3 participants