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

Fix setting of ARCH_INDEPENDENT based on INTERFACE_LIBRARY property #39

Conversation

salman-javed-nz
Copy link
Contributor

If PROJECT_ARCH_INDEPENDENT is not set by the user, PackageProject will attempt to set this automatically depending on whether the target is an INTERFACE_LIBRARY or not.

However, this auto-detection currently does not work due to an error in the CMake logic.

If PROJECT_ARCH_INDEPENDENT is not set by the user, PackageProject
will attempt to set this automatically depending on whether the target
is an INTERFACE_LIBRARY or not.

However, this auto-detection currently does not work due to an error in
the CMake logic.
@salman-javed-nz
Copy link
Contributor Author

The correct logic was already being used in another part of this file. See https://github.com/TheLartians/PackageProject.cmake/pull/39/files#diff-1e7de1ae2d059d21e1dd75d5812d5a34b0222cef273b7c3a2af62eb747f9d20aR93.

The fix was to use that correct logic in all other places in the file.

Copy link
Owner

@TheLartians TheLartians left a comment

Choose a reason for hiding this comment

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

This definitely looks like a CMake error on our side. Thanks for the fix!

@TheLartians TheLartians merged commit 2d8a468 into TheLartians:master Jan 17, 2024
3 checks passed
@TheLartians
Copy link
Owner

Fix is released in v1.11.2 🎉

@salman-javed-nz salman-javed-nz deleted the fix/target-type-arch-independent branch August 4, 2024 02:01
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.

2 participants