-
Notifications
You must be signed in to change notification settings - Fork 330
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
Mismatch in linker when building on Windows, getting dynamic lib when static is needed #2452
Comments
When I look at the cmake files generated in _deps the hwy project shows its using
Any ideas? |
Hi, I am not very familiar with CMake + MSVC, but we do provide some knobs to disable DLL: |
Thanks @jan-wassenberg I did already try that. I'm not sure why, although my cmake project is build statically the highway dependency is built dynamic. I added this to try and force it:
|
@jan-wassenberg Have you had any builds using Windows cmake and clang? |
hm, that looks reasonable. These threads have some suggestions that might help? |
I tried removing different libs to check hwy was the cause and it was. I ended up forking and adding this which seemed to resolve it:
I was setting MSVC_RUNTIME_LIBRARY in my lib to |
Nice, good news. Would you like to send a pull request with that? |
When Im building my code on windows I get these linker errors:
Do you know why I would be getting a dynamic version on Windows, this does not occur on Mac?
Perhaps I forgot a flag or setting?
Im just bringing Highway in like this in my cmake:
The text was updated successfully, but these errors were encountered: