CMake: Fix export with AMReX_INSTALL=OFF#2838
Merged
WeiqunZhang merged 1 commit intoAMReX-Codes:developmentfrom Jun 14, 2022
Merged
CMake: Fix export with AMReX_INSTALL=OFF#2838WeiqunZhang merged 1 commit intoAMReX-Codes:developmentfrom
export with AMReX_INSTALL=OFF#2838WeiqunZhang merged 1 commit intoAMReX-Codes:developmentfrom
Conversation
When introducing `AMReX_INSTALL`, the `export` of targets broke for `OFF`. This generalizes this to work in either case.
ax3l
commented
Jun 14, 2022
| # | ||
| # Export build-tree | ||
| # | ||
| export( EXPORT AMReXTargets NAMESPACE AMReX:: |
Member
Author
There was a problem hiding this comment.
This line only works if an equivalent install() line exists for the same target.
sayerhs
approved these changes
Jun 14, 2022
Member
Author
|
@jmusser304 let's coordinate here on your regression in MFIX Quote: if I run the same command echoed by the regtest, it works |
Contributor
|
It appears that I can get it to build if edit the file |
ax3l
added a commit
to ax3l/impactx
that referenced
this pull request
Jun 22, 2022
Various Python related updates: - AMReX-Codes/amrex#2842 - AMReX-Codes/amrex#2844 - AMReX-Codes/amrex#2838 Fix: - AMReX-Codes/amrex#2837
ax3l
added a commit
to BLAST-ImpactX/impactx
that referenced
this pull request
Jun 22, 2022
Various Python related updates: - AMReX-Codes/amrex#2842 - AMReX-Codes/amrex#2844 - AMReX-Codes/amrex#2838 Fix: - AMReX-Codes/amrex#2837
Member
Author
|
Fixed via #2849 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When introducing
AMReX_INSTALL#1831, theexportof targets #1149 broke forOFF. This generalizes this to work in either case.Additional background
Check the change without white space changes to see the changed logic more cleanly:
https://github.com/AMReX-Codes/amrex/pull/2838/files?diff=unified&w=1
Checklist
The proposed changes: