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

[directxmath] port updated for cmake improvements #15383

Merged
merged 3 commits into from Dec 31, 2020
Merged

[directxmath] port updated for cmake improvements #15383

merged 3 commits into from Dec 31, 2020

Conversation

walbourn
Copy link
Member

@walbourn walbourn commented Dec 30, 2020

In PR 15210 I added directxmath as a new port using the CMake integration upstream. This works fine on Windows and installs for x64-linux, but trying to use it from Linux with find_package fails.

This is due to case-sensitivity in the Linux filesystem combined with a CamelCase PROJECT_NAME, and the specific logic of find_package behavior (it needs <PackageName>Config.cmake or <lowercase-packagename>-config.cmake). This is fixed upstream in this PR and this port updates to points to this version.

Also moved the installed locations of DirectXMath headers into include/DirectXMath to avoid any accidental include order issues since those headers are in the Windows SDK as well.

@JackBoosY JackBoosY added the category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist label Dec 30, 2020
@PhoebeHui PhoebeHui added category:port-bug The issue is with a library, which is something the port should already support category:port-update The issue is with a library, which is requesting update new revision and removed category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist labels Dec 30, 2020
@PhoebeHui PhoebeHui changed the title directxmath port updated for cmake improvements [directxmath] port updated for cmake improvements Dec 30, 2020
Copy link
Contributor

@PhoebeHui PhoebeHui left a comment

Choose a reason for hiding this comment

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

@walbourn, thanks for the PR!

Could you also update the version in CONTROL file?

@walbourn
Copy link
Member Author

Could you also update the version in CONTROL file?

I've not updated the version of the library. It's just fixed the CMake.

Copy link
Contributor

@PhoebeHui PhoebeHui left a comment

Choose a reason for hiding this comment

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

@walbourn, I suggest to use the version that we referenced in portfile.cmake.
https://github.com/microsoft/DirectXMath/releases

ports/directxmath/CONTROL Outdated Show resolved Hide resolved
Copy link
Contributor

@PhoebeHui PhoebeHui left a comment

Choose a reason for hiding this comment

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

Thanks for your updates!

@PhoebeHui PhoebeHui added info:reviewed Pull Request changes follow basic guidelines and removed requires:author-response labels Dec 31, 2020
@vicroms
Copy link
Member

vicroms commented Dec 31, 2020

Thanks for the PR!

@vicroms vicroms merged commit c450737 into microsoft:master Dec 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support category:port-update The issue is with a library, which is requesting update new revision info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants