-
Notifications
You must be signed in to change notification settings - Fork 306
check multiple highway headers #3642
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
Conversation
attempts to fix libjxl#3641
Should this part also be changed: find_path(HWY_INCLUDE_DIR
NAMES hwy/highway.h
HINTS ${PC_HWY_INCLUDEDIR} ${PC_HWY_INCLUDE_DIRS}
) |
good point, added a mitigation for that |
Will test this later today. |
You should also do this: if(NOT HWY_VERSION_MAJOR STREQUAL "" AND NOT HWY_VERSION_MINOR STREQUAL "" AND NOT HWY_VERSION_PATCH STREQUAL "")
set(HWY_VERSION "${HWY_VERSION_MAJOR}.${HWY_VERSION_MINOR}.${HWY_VERSION_PATCH}")
endif() Otherwise the value will be overwritten from the other header file. But when I use if (HWY_INCLUDE_DIR AND NOT HWY_VERSION)
set(HWY_VERSION "") |
Make sense. I guess we could instead also break out of the foreach after setting this the first time
I added this. |
Maybe a bit OCD but and yes I know I send it to you like this 😁 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can confirm that this fixes the issue.
attempts to fix #3641