-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
CMake GLEW handling on Windows is broken-ish #53
Comments
I have a fix |
Closed
Filed as internal issue #137371. |
We think this issue should be fixed in OpenSubdiv 3.1.1 by this commit: I'm going to close this (and the associated pull request) out for now, please reopen if this is still an issue. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On Windows, when statically linking against Glew, GLEW_STATIC must be defined, here is the relevant part of glew.h:
So on Windows when using glew32.lib (or glew32d.lib, which OpenSubdiv/USD doesn't support!) -> no switch needed.
When using glew32s.lib (glew32sd.lib) -> -DGLEW_STATIC is required.
Also, OpenSubdiv should guard against glew leaking into the public headers/templates, which I think is what I ran into -- will file a separate bug.
The text was updated successfully, but these errors were encountered: