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
make highway findable by CMake #1084
Comments
This sounds useful but I don't have experience with it. Are you (or anyone else) able to help add that? |
I haven't done this, only used it. But the mechanism (especially with the CONFIG flavour) is very powerful and convenient for users. It requires the package's installation routine to put a Find.cmake file into the relevant folder (on my ubuntu 22.10 system, the path is /usr/share/cmake-3.24/Modules), so in your case that would be FindHwy.cmake. There, you specify a set of CMake variables which the user's CMakeLists.txt should receive if your package is installed on the user's machine. The relevant docu is here. Sorry I can't be more helpful at the moment. |
I understand. This would indeed be nice to have. I'm also snowed under at the moment, literally and figuratively, and unable to get to this at the moment. But would welcome a patch if anyone is able to help. |
@kfjahnke I just realized that someone has already written such a thing: https://github.com/cloudinary/ssimulacra2/blob/main/src/cmake/FindHWY.cmake Is that what you're looking for? If so, we can contact them and see about importing their code. |
Well found! That's precisely what I was looking for. I copied it here to my CMake module path and it worked as intended, finding an installed hwy package on my linux machine. Please ask the authors about importing the code to highway! |
Thanks for confirming it works, glad to hear. Will do :) |
PiperOrigin-RevId: 496353054
PiperOrigin-RevId: 496353054
PiperOrigin-RevId: 496353054
PiperOrigin-RevId: 496353054
PiperOrigin-RevId: 496353054
Hang on a sec... |
I'd like to find highway with my CMake build script, like so:
Are there any plans to add CMake find_package support?
The text was updated successfully, but these errors were encountered: