-
Notifications
You must be signed in to change notification settings - Fork 291
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
Windows cross-compilation is broken #1201
Comments
Alright, so here is a summary of what is going on. CMake tries to find a shared library first. c-toxcore/cmake/Dependencies.cmake Lines 26 to 28 in f87f871
Then it checks if c-toxcore/cmake/Dependencies.cmake Lines 29 to 32 in f87f871
Our Windows builds use static libsodium, so you'd expect the first c-toxcore/cmake/Findsodium.cmake Line 251 in f87f871
The proper way to check if shared libsodium was not found would be if (NOT sodium_FOUND) instead of checking if (Interestingly enough, @sphaerophoria did write the proper check the first time around, but then changed it to the broken one because the proper one was causing issues on Ubuntu 14.04 for them.) However, this proper check exposes another issue, while the the second
This situation with |
This inconsistency in fallback on Linux and Windows is annoying, opened the issue with Findsodium.cmake's upstream jedisct1/libsodium#757 just so they know about it. |
ill roll back the change tonight |
Looks like #1191 broke Windows cross-compilation builds, even though we tried our best not to break them.
https://travis-ci.org/TokTok/c-toxcore/builds/432322743
The text was updated successfully, but these errors were encountered: