Skip to content

Fix find_package(xsimd) for xtl enabled xsimd, reloaded #875

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

Merged
merged 1 commit into from
Dec 28, 2022

Conversation

amyspark
Copy link
Contributor

PR #788 fixes xtl lookup by adding the corresponding find_dependency call. However, there are still two issues remaining:

  • If xtl is not found, the INTERFACE_LINK_LIBRARIES property will make CMake interpret "xtl" as a .lib, pass it as a -l flag, and cause the build to fail.

  • If xtl is used, the required definition XSIMD_ENABLE_XTL_COMPLEX=1 is never passsed to downstream consumers.

This commit fixes both issues, ensuring that if xtl was required at compile time, the Config module with not load unless xtl is also found.

Fixes #869

PR xtensor-stack#788 fixes xtl lookup by adding the corresponding find_dependency
call. However, there are still two issues remaining:

- If xtl is not found, the INTERFACE_LINK_LIBRARIES property will
  make CMake interpret "xtl" as a .lib, pass it as a -l flag, and cause
  the build to fail.

- If xtl is used, the required definition XSIMD_ENABLE_XTL_COMPLEX=1 is
  never passsed to downstream consumers.

This commit fixes both issues, ensuring that if xtl was required at
compile time, the Config module with not load unless xtl is also found.

Fixes xtensor-stack#869
@amyspark
Copy link
Contributor Author

@JohanMabille It should be noted that this commit (along with #788) has to be cherry-picked to 8.x for Debian to stop breaking Krita builds.

@JohanMabille
Copy link
Member

Awesome! Thanks for this fix!

@JohanMabille JohanMabille merged commit 088a135 into xtensor-stack:master Dec 28, 2022
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.

xsimd install with xtensor dependency results in a broken CMake target file
2 participants