-
Notifications
You must be signed in to change notification settings - Fork 300
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
No need for a FindHWY.cmake #1114
Comments
Can you expand on how FindHWY would be used by non-CMake build tools? My understanding is that FindHWY would still be useful for CMake builds that wish to use a prebuilt/system Highway for whatever reason. @kfjahnke any thoughts? |
cmake is able to generate those *Config.cmake files that are needed by cmake users. find_package is able to search for HWYConfig.cmake when installed in the correct location. |
hm, FindHWY also invokes find_package. It's not clear to me that find_package by itself is sufficient, other projects have actually found it useful to add their own FindHWY. It seems to me they wouldn't do that if plain CMake were sufficient? |
It is equivalent...except that generating a HWYConfig.cmake is integrated in cmake directly, no need to manually tweak the FindHWY.cmake anymore (since derived info). Typical steps:
Trigger:
Since current hwy Debian package does not provide neither FindHWY.cmake nor HWYConfig.cmake... |
For reference: Not tested but writing HWYConfig.cmake is just a matter of a single cmake line:
|
chicken and egg situation...until hwy install a HWYConfig.cmake the cmake-outside world needs to retrieve info through a findhwy.cmake (just as any non-cmake based build tool). |
Nevermind this was a bit more work than just a single line. |
This will be needed by cmake user consuming HWY. Also remove FindHWY.cmake since not needed in a cmake-based build tool setup. Fixes google#1114
This will be needed by cmake user consuming HWY. Also remove FindHWY.cmake since not needed in a cmake-based build tool setup. Fixes google#1114
This will be needed by cmake user consuming HWY. Also remove FindHWY.cmake since not needed in a cmake-based build tool setup. Fixes google#1114
Hi! |
@malaterre I think I understand the chicken and egg situation. Thanks for explaining and sending the pull request! @kfjahnke oops, I had indeed missed your post, sorry about that! |
HWY is build by cmake there should not be a need to write a FindHWY.cmake which are needed only for other build tools (non-cmake type).
The text was updated successfully, but these errors were encountered: