Skip to content

Adjusted relative paths of CMakeLists.txt #524

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JanNiklasB
Copy link
Contributor

Hi,

as mentioned in issue #523 when including CRPropa over add_subdirectory in other projects, the relative paths are not pointing to the correct folders.

To better support CRPropas behavior when included elsewhere, I changed all relative paths to the correct absolute paths utilizing CMAKE_CURRENT_SOURCE_DIR and CMAKE_CURRENT_BINARY_DIR respectively.

I also added a new cache variable for CRPROPA_EXTRA_INCLUDES so the include paths can be used on the above levels (I do not know how to hide this from the user if possible).

Also added CRPROPA_EXTRA_INCLUDES as cache variable for subproject support
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.

1 participant