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

Don't define pugixml import target if it already exists #394

Merged
merged 1 commit into from
Dec 22, 2020
Merged

Conversation

zeux
Copy link
Owner

@zeux zeux commented Dec 22, 2020

This fixes duplicate target definition errors when find_package(pugixml)
is called twice in a build.

Fixes #393.

This fixes duplicate target definition errors when find_package(pugixml)
is called twice in a build.

Fixes #393.
@zeux
Copy link
Owner Author

zeux commented Dec 22, 2020

cc @mathstuf @slurps-mad-rips to see if this is a reasonable solution

Copy link
Contributor

@mathstuf mathstuf left a comment

Choose a reason for hiding this comment

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

Looks good. So many corner cases 🙁 .

@zeux
Copy link
Owner Author

zeux commented Dec 22, 2020

Tested with CMake 3.10 on Linux and CMake 3.16, CMake 3.17, CMake 3.18 on Windows.

@zeux zeux merged commit 08b3433 into master Dec 22, 2020
@zeux zeux deleted the cmake-yay branch December 22, 2020 16:46
@LocutusOfBorg
Copy link
Contributor

thanks a lot!

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.

Cant find_package(PugiXML REQUIRED) twice
3 participants