-
Notifications
You must be signed in to change notification settings - Fork 93
Fix target_link_libraries calls w/ alias target #147
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -63,7 +63,8 @@ else() | |
|
|
||
| # Add mpi | ||
| find_package(MPI REQUIRED) | ||
|
||
| target_link_libraries(AMReX::amrex INTERFACE ${MPI_LIBRARIES}) | ||
| get_target_property(AMReX_ALIASED AMReX::amrex ALIASED_TARGET) | ||
| target_link_libraries(${AMReX_ALIASED} INTERFACE ${MPI_LIBRARIES}) | ||
|
|
||
| endif() | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do the tutorials have a specific dimensionality?
AMReX::amrexis for backwards compatibility and refers to the last-built spacedim (before, we could only build one -- keeping this target name around made transitions non-breaking/easier). But we have explicitAMReX::amrex_1d/AMReX::amrex_2d/AMReX::amrex_3dtargets that we should now use.https://github.com/AMReX-Codes/amrex/blob/041f225dc5c97a5e3baf2559046ceabffd75f002/Src/CMakeLists.txt#L8-L15